aboutsummaryrefslogtreecommitdiff
path: root/builtin-gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-gc.c')
-rw-r--r--builtin-gc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin-gc.c b/builtin-gc.c
index 956c32d1a..f99b212ca 100644
--- a/builtin-gc.c
+++ b/builtin-gc.c
@@ -205,6 +205,10 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
prune = 0;
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");
} else {
/*
* Use safer (for shared repos) "-A" option to