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>
Nguyễn Thái Ngọc Duy committed
Feb 9, 2018 at 18:02 UTC
44c9a6d2699134d19d5b78503633615fe1bdfa31
2 files changed
+2
-2
builtin/rm.c
+1
-1
@@ -242,7 +242,7 @@ static struct option builtin_rm_options[] = {
242
OPT__DRY_RUN(&show_only, N_("dry run")),
243
OPT__QUIET(&quiet, N_("do not list removed files")),
244
OPT_BOOL( 0 , "cached", &index_only, N_("only remove from the index")),
245
- OPT__FORCE(&force, N_("override the up-to-date check"), 0),
245
+ OPT__FORCE(&force, N_("override the up-to-date check"), PARSE_OPT_NOCOMPLETE),
246
OPT_BOOL('r', NULL, &recursive, N_("allow recursive removal")),
247
OPT_BOOL( 0 , "ignore-unmatch", &ignore_unmatch,
248
N_("exit with a zero status even if nothing matched")),
contrib/completion/git-completion.bash
+1
-1
@@ -2715,7 +2715,7 @@ _git_rm ()
2715
{
2716
case "$cur" in
2717
--*)
2718
- __gitcomp "--cached --dry-run --ignore-unmatch --quiet"
2718
+ __gitcomp_builtin rm
2719
return
2720
;;
2721
esac