is git-unpack-objects now redundant for 'git-push' and friends?
- From
Sam Vilain <sam@vilain.net>
- Date
- Oct 10, 2006, 13:23 UTC
- Message-ID
- <452B9EE8.5020702@vilain.net>
When pushing or pulling to/from a repository, why unpack the objects? Why not just fsck and then throw the pack into $GIT_DIR/objects/pack?
If you're pushing the entire repository, for instance, currently you might create 10,000's of files, which will just be thrown away later when you `git-repack -d'.
I suspect that this was never changed, because there never used to be more than one packfile allowed, correct?
If the server *does* send us duplicates of objects we already have for some reason, well that's what `git-repack -a -d' is for.
I'm just wondering if there are any good reasons to do this any more.
Sam.