Skip to content

Commit 44c9a6d

Browse files
pcloudsgitster
authored andcommitted
completion: use __gitcomp_builtin in _git_rm
No new completable options! Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e5f9851 commit 44c9a6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/rm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static struct option builtin_rm_options[] = {
242242
OPT__DRY_RUN(&show_only, N_("dry run")),
243243
OPT__QUIET(&quiet, N_("do not list removed files")),
244244
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),
246246
OPT_BOOL('r', NULL, &recursive, N_("allow recursive removal")),
247247
OPT_BOOL( 0 , "ignore-unmatch", &ignore_unmatch,
248248
N_("exit with a zero status even if nothing matched")),

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2715,7 +2715,7 @@ _git_rm ()
27152715
{
27162716
case "$cur" in
27172717
--*)
2718-
__gitcomp "--cached --dry-run --ignore-unmatch --quiet"
2718+
__gitcomp_builtin rm
27192719
return
27202720
;;
27212721
esac

0 commit comments

Comments
 (0)