From: Nguyễn Thái Ngọc Duy Date: Fri, 9 Feb 2018 11:01:58 +0000 (+0700) Subject: completion: use __gitcomp_builtin in _git_gc X-Git-Tag: v2.17.0-rc0~7^2~26 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7e1eeaa431047d7f71bcaad53f579a405bca41c8 completion: use __gitcomp_builtin in _git_gc The new completable option is --quiet. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/builtin/gc.c b/builtin/gc.c index 3c5eae0edf..7fc5c16254 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -360,8 +360,11 @@ int cmd_gc(int argc, const char **argv, const char *prefix) N_("prune unreferenced objects"), PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire }, OPT_BOOL(0, "aggressive", &aggressive, N_("be more thorough (increased runtime)")), - OPT_BOOL(0, "auto", &auto_gc, N_("enable auto-gc mode")), - OPT_BOOL(0, "force", &force, N_("force running gc even if there may be another gc running")), + OPT_BOOL_F(0, "auto", &auto_gc, N_("enable auto-gc mode"), + PARSE_OPT_NOCOMPLETE), + OPT_BOOL_F(0, "force", &force, + N_("force running gc even if there may be another gc running"), + PARSE_OPT_NOCOMPLETE), OPT_END() }; diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 340e2414ff..79e9f69d52 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1509,7 +1509,7 @@ _git_gc () { case "$cur" in --*) - __gitcomp "--prune --aggressive" + __gitcomp_builtin gc return ;; esac