Re: git prune pig slow
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 29, 2006, 23:48 UTC
- Message-ID
- <Pine.LNX.4.64.0607291647030.4168@g5.osdl.org>
- In-Reply-To
- <20060729224106.12312.qmail@science.horizon.com>
On Sat, 29 Jul 2006, linux@horizon.com wrote:
> > No, that's dangerous too. The index file is considered part of the root > set for git-fsck-objects, but not for git-repack.
Indeed.
Although at least you won't lose any history - at worst you'll have to basically do a "git reset HEAD" to make things right again.
I was careful when I wrote the new git-prune to take the index into account, but I'd forgotten about it wrt the "git repack -a -d" suggestion.
Linus