Re: [PATCH] Skip writing out sha1 files for objects in packed git.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jun 28, 2005, 15:45 UTC
- Message-ID
- <Pine.LNX.4.58.0506280844190.19755@ppc970.osdl.org>
- In-Reply-To
- <7vekanyx33.fsf@assigned-by-dhcp.cox.net>
On Mon, 27 Jun 2005, Junio C Hamano wrote:
Show 8 quoted lines
> > LT> And if we have a pack-file in .git/objects/ that already has > LT> the object, that may not be the _same_ pack-file that we're > LT> expanding at all, so if that pack file already has the > LT> object, then not writing it out is actually the right thing > LT> to do. > > This I have to think about a bit.
The most trivial example is doing a "git pull" of a small pack-file update.
We probably don't want to leave it around as a pack-file (we'll re-pack everything at some later date, but we also don't want to expand the stuff we already have in our _real_ pack-file).
Linus