Re: [PATCH] Improve on the 'invalid object' error message at commit time
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 14, 2009, 19:43 UTC
- Message-ID
- <7vab37giep.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <alpine.LFD.2.01.0907141119190.13838@localhost.localdomain>
Linus Torvalds <torvalds@linux-foundation.org> writes:
> ... one thing that I > started wondering about was whether the problem Florian saw was about one > of the files he had done "git add" on, or whether it was a tree entry that > was the result of "find_subtree()".
Same here.
Historically, cache-tree had issues that same corner case codepaths forgot invalidating subtrees when they should that could have led to kinds of bugs that are hard to diagnose. I think the API got harder to make that kind of mistakes while we squashed those bugs, though.