From: Nicolas Pitre Date: Wed, 22 Apr 2009 19:14:18 GMT Subject: Re: dangling commits and blobs: is this normal? Message-ID: In-Reply-To: On Wed, 22 Apr 2009, Matthieu Moy wrote: > Nicolas Pitre writes: > > > Why so? Having fewer packs is always a good thing. Having only one > > pack is of course the optimal situation. > > Good and optimal wrt Git, but not wrt an incremental backup system for > example. This goes without saying that git should optimize for its own usage by default, and not for a particular backup system. > I have a "git gc" running daily in a cron job in each of my > repositories, but to be nice with my sysadmin, I don't want to rewrite > tens of megabytes of data each night just because I commited a 2 lines > patch somewhere. Just add a .keep file along side your .pack file after repacking. Nicolas