Add a message explaining that automatic GC is about to start
Signed-off-by: Steven Grimm <koreth@midwinter.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
koreth@midwinter.com committed
Oct 17, 2007 at 21:41 UTC
130faabe48fd988c1eb078ef467a44e124a00a40
1 file changed
+4
builtin-gc.c
+4
@@ -205,6 +205,10 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
205
prune = 0;
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");
212
} else {
213
/*
214
* Use safer (for shared repos) "-A" option to