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>

Nguyễn Thái Ngọc Duy committed Feb 9, 2018 at 18:01 UTC 26e90958e9f2561d88e01b379f143e5c03f5e764
2 files changed +2 -2
builtin/clean.c
+1 -1
@@ -909,7 +909,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
909 struct option options[] = {
910 OPT__QUIET(&quiet, N_("do not print names of files removed")),
911 OPT__DRY_RUN(&dry_run, N_("dry run")),
912 - OPT__FORCE(&force, N_("force"), 0),
912 + OPT__FORCE(&force, N_("force"), PARSE_OPT_NOCOMPLETE),
913 OPT_BOOL('i', "interactive", &interactive, N_("interactive cleaning")),
914 OPT_BOOL('d', NULL, &remove_directories,
915 N_("remove whole directories")),
contrib/completion/git-completion.bash
+1 -1
@@ -1307,7 +1307,7 @@ _git_clean ()
1307 {
1308 case "$cur" in
1309 --*)
1310 - __gitcomp "--dry-run --quiet"
1310 + __gitcomp_builtin clean
1311 return
1312 ;;
1313 esac