提交 61d15cd6 编写于 作者: N Nguyễn Thái Ngọc Duy 提交者: Junio C Hamano

completion: use __gitcomp_builtin in _git_mv

The new completable option is --verbose.
Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 4429d8b2
......@@ -122,7 +122,8 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
struct option builtin_mv_options[] = {
OPT__VERBOSE(&verbose, N_("be verbose")),
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_END(),
};
......
......@@ -1809,7 +1809,7 @@ _git_mv ()
{
case "$cur" in
--*)
__gitcomp "--dry-run"
__gitcomp_builtin mv
return
;;
esac
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册