Re: dangling commits and blobs: is this normal?
- From
Nicolas Pitre <nico@cam.org>
- Date
- Apr 22, 2009, 19:14 UTC
- Message-ID
- <alpine.LFD.2.00.0904221509550.6741@xanadu.home>
- In-Reply-To
- <vpqws9cd06b.fsf@bauges.imag.fr>
On Wed, 22 Apr 2009, Matthieu Moy wrote:
Show 7 quoted lines
> Nicolas Pitre <nico@cam.org> 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