Code

git-gc: improve wording of --auto notification
authorJeff King <peff@peff.net>
Fri, 19 Oct 2007 01:12:11 +0000 (21:12 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 19 Oct 2007 02:23:50 +0000 (22:23 -0400)
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>
builtin-gc.c

index f99b212ca47b13741c1e087b6ec75b9861c11e38..3a2ca4f901b985c45820c8a5f68061cf1c647f30 100644 (file)
@@ -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