Re: Git benchmarks at OpenOffice.org wiki
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 7, 2007, 08:05 UTC
- Message-ID
- <7vk5vl6oum.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <alpine.LFD.0.98.0705042049330.3819@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 8 quoted lines
> A trivial patch is to just do > > git pack-refs --all --prune > > in the "git-clone.sh" script rather than force people to do it themselves, > but we really probably shouldn't have ever even unpacked them in the first > place. That is kind of stupid, but especially since that thing is written > in shell, it's hard to do anything smarter.
It is not just being in shell.
Although I do agree that the initial clone is special, I would rather make clone just a thin wrapper to fetch that also happens to perform necessary initial setup.
Keeping fetched and updated refs in core and write a packed refs out in one go in git-fetch--tool (and later, git-fetch all in C) would be much simpler if we do not have to worry about existing refs (aka "git clone" special case); I am not sure if packing refs is desirable in general for incremental "git-fetch".