mirror of
https://github.com/git/git
synced 2024-08-28 03:59:25 +00:00
completion: use __gitcomp_builtin in _git_rm
No new completable options! 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
e5f9851873
commit
44c9a6d269
|
@ -242,7 +242,7 @@ static struct option builtin_rm_options[] = {
|
||||||
OPT__DRY_RUN(&show_only, N_("dry run")),
|
OPT__DRY_RUN(&show_only, N_("dry run")),
|
||||||
OPT__QUIET(&quiet, N_("do not list removed files")),
|
OPT__QUIET(&quiet, N_("do not list removed files")),
|
||||||
OPT_BOOL( 0 , "cached", &index_only, N_("only remove from the index")),
|
OPT_BOOL( 0 , "cached", &index_only, N_("only remove from the index")),
|
||||||
OPT__FORCE(&force, N_("override the up-to-date check"), 0),
|
OPT__FORCE(&force, N_("override the up-to-date check"), PARSE_OPT_NOCOMPLETE),
|
||||||
OPT_BOOL('r', NULL, &recursive, N_("allow recursive removal")),
|
OPT_BOOL('r', NULL, &recursive, N_("allow recursive removal")),
|
||||||
OPT_BOOL( 0 , "ignore-unmatch", &ignore_unmatch,
|
OPT_BOOL( 0 , "ignore-unmatch", &ignore_unmatch,
|
||||||
N_("exit with a zero status even if nothing matched")),
|
N_("exit with a zero status even if nothing matched")),
|
||||||
|
|
|
@ -2715,7 +2715,7 @@ _git_rm ()
|
||||||
{
|
{
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "--cached --dry-run --ignore-unmatch --quiet"
|
__gitcomp_builtin rm
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue