Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gc --auto --quiet: make the notice a bit less verboase
author
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Oct 2009 22:26:10 +0000
(15:26 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Oct 2009 22:28:42 +0000
(15:28 -0700)
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>
builtin-gc.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
78d553b
)
diff --git
a/builtin-gc.c
b/builtin-gc.c
index 7d3e9cc7a04e0aa3eb378cb54b7b71fe17981c95..093517e390044055039b9f4e58132c73d17b741d 100644
(file)
--- a/
builtin-gc.c
+++ b/
builtin-gc.c
@@
-216,10
+216,13
@@
int cmd_gc(int argc, const char **argv, const char *prefix)
*/
if (!need_to_gc())
return 0;
*/
if (!need_to_gc())
return 0;
- fprintf(stderr, "Auto packing your repository for optimum "
- "performance. You may also\n"
- "run \"git gc\" manually. See "
- "\"git help gc\" for more information.\n");
+ fprintf(stderr,
+ "Auto packing the repository for optimum performance.%s\n",
+ quiet
+ ? ""
+ : (" You may also\n"
+ "run \"git gc\" manually. See "
+ "\"git help gc\" for more information."));
} else
append_option(argv_repack,
prune_expire && !strcmp(prune_expire, "now")
} else
append_option(argv_repack,
prune_expire && !strcmp(prune_expire, "now")