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>
This commit is contained in:
parent
207f1a75e7
commit
130faabe48
@ -205,6 +205,10 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
|
|||||||
prune = 0;
|
prune = 0;
|
||||||
if (!need_to_gc())
|
if (!need_to_gc())
|
||||||
return 0;
|
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 {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Use safer (for shared repos) "-A" option to
|
* Use safer (for shared repos) "-A" option to
|
||||||
|
Loading…
Reference in New Issue
Block a user