git-gc: improve wording of --auto notification
The previous message had too much of a "boy, you should really turn off this annoying gc" flair to it. Instead, let's make sure the user understands what is happening, that they can run it themselves, and where to find more info. Suggested by Brian Gernhardt. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Jeff King committed
Oct 18, 2007 at 21:12 UTC
dd8b883ab9d9a18c5ec8157765244316b2490618
1 file changed
+3
-3
builtin-gc.c
+3
-3
@@ -206,9 +206,9 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
206
if (!need_to_gc())
207
return 0;
208
fprintf(stderr, "Packing your repository for optimum "
209
- "performance. If you would rather run\n"
210
- "\"git gc\" by hand, run \"git config gc.auto 0\" "
211
- "to disable automatic cleanup.\n");
209
+ "performance. You may also\n"
210
+ "run \"git gc\" manually. See "
211
+ "\"git help gc\" for more information.\n");
212
} else {
213
/*
214
* Use safer (for shared repos) "-A" option to