On Oct 18, 2007, at 12:41 AM, koreth@midwinter.com wrote:
And as an added bonus, we can tell people how to turn off automatic GC
and how to invoke it by hand.
+ 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");
I'm not sure telling the users how to disable it every time it shows
up is a good idea. gc --auto exists for the naive user, and
suggesting they turn it off each time it happens will just result
in... people turning it off, leading back to the performance issues
that caused the feature to be installed in the first place. Perhaps
a message more along the lines of "To avoid this, run "git gc"
manually on a regular basis. See 'git help gc' for more information."
~~ Brian