summaryrefslogtreecommitdiff
path: root/builtin-gc.c
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2009-12-02 23:28:40 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-12-03 10:08:54 -0800
commit5d2dcc423ec689ff4a6bcb83b00d5b43657b0c88 (patch)
tree57f0de15b8e4849d384e7df90568f2b50884191b /builtin-gc.c
parentGit 1.6.6-rc1 (diff)
downloadtgif-5d2dcc423ec689ff4a6bcb83b00d5b43657b0c88.tar.xz
General --quiet improvements
'git reset' is missing --quiet, and 'git gc' is not using OPT__QUIET. Let's fix that. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-gc.c')
-rw-r--r--builtin-gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-gc.c b/builtin-gc.c
index 093517e390..c304638b78 100644
--- a/builtin-gc.c
+++ b/builtin-gc.c
@@ -180,12 +180,12 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
char buf[80];
struct option builtin_gc_options[] = {
+ OPT__QUIET(&quiet),
{ OPTION_STRING, 0, "prune", &prune_expire, "date",
"prune unreferenced objects",
PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire },
OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"),
OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
- OPT_BOOLEAN('q', "quiet", &quiet, "suppress progress reports"),
OPT_END()
};