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>
This commit is contained in:
parent
4429d8b27b
commit
61d15cd63c
@ -122,7 +122,8 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
|
|||||||
struct option builtin_mv_options[] = {
|
struct option builtin_mv_options[] = {
|
||||||
OPT__VERBOSE(&verbose, N_("be verbose")),
|
OPT__VERBOSE(&verbose, N_("be verbose")),
|
||||||
OPT__DRY_RUN(&show_only, N_("dry run")),
|
OPT__DRY_RUN(&show_only, N_("dry run")),
|
||||||
OPT__FORCE(&force, N_("force move/rename even if target exists"), 0),
|
OPT__FORCE(&force, N_("force move/rename even if target exists"),
|
||||||
|
PARSE_OPT_NOCOMPLETE),
|
||||||
OPT_BOOL('k', NULL, &ignore_errors, N_("skip move/rename errors")),
|
OPT_BOOL('k', NULL, &ignore_errors, N_("skip move/rename errors")),
|
||||||
OPT_END(),
|
OPT_END(),
|
||||||
};
|
};
|
||||||
|
@ -1809,7 +1809,7 @@ _git_mv ()
|
|||||||
{
|
{
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "--dry-run"
|
__gitcomp_builtin mv
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user