completion: use __gitcomp_builtin in _git_mv

The new completable option is --verbose. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Feb 9, 2018 at 18:02 UTC 61d15cd63cf74bbe746b0c62df5da2784d95f3db
2 files changed +3 -2
builtin/mv.c
+2 -1
@@ -122,7 +122,8 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
122 struct option builtin_mv_options[] = {
123 OPT__VERBOSE(&verbose, N_("be verbose")),
124 OPT__DRY_RUN(&show_only, N_("dry run")),
125 - OPT__FORCE(&force, N_("force move/rename even if target exists"), 0),
125 + OPT__FORCE(&force, N_("force move/rename even if target exists"),
126 + PARSE_OPT_NOCOMPLETE),
127 OPT_BOOL('k', NULL, &ignore_errors, N_("skip move/rename errors")),
128 OPT_END(),
129 };
contrib/completion/git-completion.bash
+1 -1
@@ -1809,7 +1809,7 @@ _git_mv ()
1809 {
1810 case "$cur" in
1811 --*)
1812 - __gitcomp "--dry-run"
1812 + __gitcomp_builtin mv
1813 return
1814 ;;
1815 esac