@matheusbsbs / matheus-bagliano / commits / dad5f89fc5
Fork 0

gc --auto --quiet: make the notice a bit less verboase

When "gc --auto --quiet" decides there is something to do, it tells the user what it is doing, as it is going to make the user wait for a bit. But the message was a bit too long. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 21, 2009 at 15:26 UTC dad5f89fc568639c43bdbf344411757adf39d636
1 file changed +7 -4
builtin-gc.c
+7 -4
@@ -216,10 +216,13 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
216 */
217 if (!need_to_gc())
218 return 0;
219 - fprintf(stderr, "Auto packing your repository for optimum "
220 - "performance. You may also\n"
221 - "run \"git gc\" manually. See "
222 - "\"git help gc\" for more information.\n");
219 + fprintf(stderr,
220 + "Auto packing the repository for optimum performance.%s\n",
221 + quiet
222 + ? ""
223 + : (" You may also\n"
224 + "run \"git gc\" manually. See "
225 + "\"git help gc\" for more information."));
226 } else
227 append_option(argv_repack,
228 prune_expire && !strcmp(prune_expire, "now")