Skip to content

Commit

Permalink
Add a message explaining that automatic GC is about to start
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Grimm <koreth@midwinter.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
koreth@midwinter.com authored and Shawn O. Pearce committed Oct 18, 2007
1 parent 207f1a7 commit 130faab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 130faab

Please sign in to comment.