Re: [PATCH] pretend-sha1: grave bugfix.
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 16, 2007, 05:09 UTC
- Message-ID
- <20070216050943.GD28894@spearce.org>
- In-Reply-To
- <Pine.LNX.4.63.0702160503290.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 8 quoted lines
> On Thu, 15 Feb 2007, Junio C Hamano wrote: > > > * I wonder how recent merge-recursive with multiple merge bases > > (or an empty one) ever worked with this bug. Am I > > hallucinating? > > Probably the fact helped that merge-recursive only pretends > zero-sized blobs.
Most definately. We never look at the pointer to an object's data if len == 0, which it does in this case of merge-recursive's empty tree.
Aren't we using this for git-blame --contents? How'd that ever work for a non-empty file?
-- Shawn.