Martin Langhoff <martin@xxxxxxxxxxxxxxx> writes: > This is a follow up to a similar patch earlier > http://www.gelato.unsw.edu.au/archives/git/0605/21401.html -- is there > interest in making GIT more friendly to users who don't know or care > about packing and repacking their repos? I would be a bit worried about the niced background repack racing against another instance of itself spawned by the same parent. > I loathe to do this conditionally only on the count of unpacked > objects. If there's a quick'n'dirty way of asking portably whether > the machine is busy or otherwise resource-constrained (ie: on battery) > it should use it to avoid running repack at inconvenient times. count-objects might be lighter weight than rev-list --unpacked. If you mean to make core.autorepack to be boolean, checking for string 'no' is not the right way. git repo-config --bool --get core.autorepack But it does not matter if that variable is a string that is almost always true unless the value is "no". - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html