summaryrefslogtreecommitdiff
path: root/src/mv.c
AgeCommit message (Collapse)Author
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23(usage): Note that ``Mandatory arguments to long options are mandatoryJim Meyering
for short options too.''
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-22(cp_option_init): Initialize new member.Jim Meyering
2001-11-22(cp_option_init): Initialize new member.Jim Meyering
(main): dest_info_init now takes a parameter.
2001-10-18(movefile): Now that remember_copied xstrdup's the file name, free `new_dest'.Jim Meyering
2001-10-13(cp_option_init): Initialize new member to 1.Jim Meyering
2001-10-13(cp_option_init): Don't set it.Jim Meyering
2001-10-13* src/copy.h (struct cp_options): Rename members:Jim Meyering
s/preserve_owner_and_group/preserve_ownership/, and s/preserve_chmod_bits/preserve_mode/. * src/copy.c, src/cp.c, src/install.c, src/mv.c: Update all uses.
2001-10-06(do_move): Reflect that hash_init now takes no arguments.Jim Meyering
2001-09-28(main): Call dest_info_init if necessary.Jim Meyering
2001-09-15Accept new option: --reply={yes,no,query}Jim Meyering
Include argmatch.h. (enum) [REPLY_OPTION]: Define. (usage): Describe new option. Split long usage string into smaller pieces. (main): Handle new option.
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-14(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2001-08-13(cp_option_init): Adjust initialization of `interactive',Jim Meyering
and initialize new member, stdin_tty. (main): Adjust initialization(s) of `interactive',
2001-08-06(usage): Correct the description of --update.Jim Meyering
2001-05-12Include "dirname.h".Jim Meyering
(strip_trailing_slashes_2): Remove; now done by strip_trailing_slashes. All callers changed.
2001-02-03(long_options): Use `strip-trailing-slashes',Jim Meyering
per the documetation, not `strip-trailing-slash'.
2001-01-10(do_move): Remove diagnostic, now that copy.c issues it.Jim Meyering
Set `fail' to nonzero in the primary `if (copy_into_self)' block rather than in its own tiny one below.
2000-10-16(rm_option_init): Remove FIXME-maybe comment.Jim Meyering
2000-09-22(do_move): Moving a directory specified with a trailingJim Meyering
slash from one partition to another, and giving it a different name at the destination would cause mv to get a failed assertion. Reported by Michael Stone. (strip_trailing_slashes_2): Move function definition to precede new first use.
2000-09-03Remove obsolete comment block.Jim Meyering
(cp_option_init): Initialize new members. (usage): Reflect the fact that --force (-f) relates only to whether mv prompts. (main): Remove uses of old `force' option member.
2000-08-20(cp_option_init): Initialize to DEREF_NEVER, not `0'.Jim Meyering
2000-08-08(movefile): Invoke xalloc_die instead of printing our own message.Jim Meyering
2000-07-30(do_move): Fix typo.Jim Meyering
2000-07-29fix spelling error in comment: s/squirelled/squirreled/.Jim Meyering
2000-07-25Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call.
2000-07-25(main): Remove unnecessary "%s" argument.Jim Meyering
2000-06-12(main): Give the correct diagnostic when using theJim Meyering
--target-dir=DIR option, but no arguments. Patch from Michael Stone. Reported by herbert@gondor.apana.org.au.
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-04-16add commentJim Meyering
2000-04-08Document that while the --backup option takes anJim Meyering
optional argument, the -b option accepts none. (main): Use `backup type' in call to xget_version, not the now-deprecated `--version-control'.
2000-01-24(main): Don't expect array index `n_files - 1' to evaluateJim Meyering
to `-1' for unsigned int n_files == 0. Doing so lead to a segfault on alpha. From Michael Stone.
2000-01-02Remove non-POSIX warning about trailing-slashed symlink-to-directory.Jim Meyering
2000-01-02New option: --strip-trailing-slashes.Jim Meyering
1999-12-23(usage): List new --target-directory=... usage.Jim Meyering
1999-10-31tweak usageJim Meyering
1999-10-23label use of -V/--versin-control as a warningJim Meyering
1999-10-17Convert --backup to take an optional argument.Jim Meyering
Deprecate --version-control (-V) in comments. (usage): Remove mention of --version-control. (main): Make -V warn then fall through into --backup case. [--backup case]: Handle optional arg.
1999-10-17change a message and add usage(1) to another.Jim Meyering
1999-10-17don't compute isdir() of -- or an option stringJim Meyering
1999-10-17remove last `,' in enumJim Meyering
1999-10-03(TARGET_DIRECTORY_OPTION): Define.Jim Meyering
(usage): Describe it. (main): Implement it. Remove unused variable, stdin_tty. Make code clearer: use new variable `n_files' in place of `argc - optind'. Use `file' instead of `argv + optind'.
1999-04-26Use proper mode_t types and macros.Jim Meyering
Don't assume the traditional Unix values for mode bits.
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-01-16Remove declarations of base_name and get_version.Jim Meyering
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it. Use xget_version and function-style XARGMATCH.