summaryrefslogtreecommitdiff
path: root/builtin-gc.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-10-18 21:12:11 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-10-18 22:23:50 -0400
commitdd8b883ab9d9a18c5ec8157765244316b2490618 (patch)
tree52652fb15f09e43d7f0384305d645027a6b5c5ad /builtin-gc.c
parentde61e42b539ffbd28d2a2ba827bb0eb79767057b (diff)
downloadgit-dd8b883ab9d9a18c5ec8157765244316b2490618.tar.gz
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>
Diffstat (limited to 'builtin-gc.c')
-rw-r--r--builtin-gc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin-gc.c b/builtin-gc.c
index f99b212ca4..3a2ca4f901 100644
--- a/builtin-gc.c
+++ b/builtin-gc.c
@@ -206,9 +206,9 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
if (!need_to_gc())
return 0;
fprintf(stderr, "Packing your repository for optimum "
- "performance. If you would rather run\n"
- "\"git gc\" by hand, run \"git config gc.auto 0\" "
- "to disable automatic cleanup.\n");
+ "performance. You may also\n"
+ "run \"git gc\" manually. See "
+ "\"git help gc\" for more information.\n");
} else {
/*
* Use safer (for shared repos) "-A" option to