X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin%2Fmv.c;h=93e8995d9e704faa041f97f92ba72dabe7839d81;hb=2ab32a330c32d6b31928e50c9e06a0266e144e40;hp=38574b89f7cfc127b2ea5044b3ebb5dabe726fb4;hpb=af24059fa299f1656692f5807eddd3b30b5f3cfb;p=git.git diff --git a/builtin/mv.c b/builtin/mv.c index 38574b89f..93e8995d9 100644 --- a/builtin/mv.c +++ b/builtin/mv.c @@ -55,15 +55,15 @@ int cmd_mv(int argc, const char **argv, const char *prefix) int i, newfd; int verbose = 0, show_only = 0, force = 0, ignore_errors = 0; struct option builtin_mv_options[] = { - OPT__DRY_RUN(&show_only), - OPT_BOOLEAN('f', "force", &force, "force move/rename even if target exists"), + OPT__DRY_RUN(&show_only, "dry run"), + OPT__FORCE(&force, "force move/rename even if target exists"), OPT_BOOLEAN('k', NULL, &ignore_errors, "skip move/rename errors"), OPT_END(), }; const char **source, **destination, **dest_path; enum update_mode { BOTH = 0, WORKING_DIRECTORY, INDEX } *modes; struct stat st; - struct string_list src_for_dst = {NULL, 0, 0, 0}; + struct string_list src_for_dst = STRING_LIST_INIT_NODUP; git_config(git_default_config, NULL);