On 6/7/07, Nicolas Pitre <nico@xxxxxxx> wrote:
Run git-repack without -a from some hook. You can even launch it in the background.
I posted an RFC patch a while ago doing exactly that, and Linus shot it down, indicating we should instead print a message suggesting repack to the user. Relevant thread around http://www.gelato.unsw.edu.au/archives/git/0606/22977.html
Or what am I missing?
I don't think people were comfortable at the time with concurrent repacks -- though the semantics are safe if we don't hit any bug. My guess is that noone wants to risk the .001% chances of data corruption for this nice-to-have. It was also probably a bad idea in my patch that it said -a -- it should just be git repack -l -q & [And I generally agree with the concerns about possibly broken semantics, unexpected user actions and racing repacks. One of the main reasons I've never advocated SVN is that the early stories of data corruption using BDB backends made me very very very wary of it. Perhaps because I lot months of work in the past to disk corruption in a cvs repo, and have a good mental picture of the nervous breakdown that followed.] cheers, m - To unsubscribe from this list: 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