Skip to content

Commit 26e9095

Browse files
pcloudsgitster
authored andcommitted
completion: use __gitcomp_builtin in _git_clean
The new completable options are --exclude and --interactive Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 660003e commit 26e9095

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
909909
struct option options[] = {
910910
OPT__QUIET(&quiet, N_("do not print names of files removed")),
911911
OPT__DRY_RUN(&dry_run, N_("dry run")),
912-
OPT__FORCE(&force, N_("force"), 0),
912+
OPT__FORCE(&force, N_("force"), PARSE_OPT_NOCOMPLETE),
913913
OPT_BOOL('i', "interactive", &interactive, N_("interactive cleaning")),
914914
OPT_BOOL('d', NULL, &remove_directories,
915915
N_("remove whole directories")),

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ _git_clean ()
13071307
{
13081308
case "$cur" in
13091309
--*)
1310-
__gitcomp "--dry-run --quiet"
1310+
__gitcomp_builtin clean
13111311
return
13121312
;;
13131313
esac

0 commit comments

Comments
 (0)