Re: [PATCH/Test] Build in merge is broken
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 13, 2008, 19:11 UTC
- Message-ID
- <7v3amdtx8x.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20080713184300.GF10347@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
Show 8 quoted lines
> On Sun, Jul 13, 2008 at 07:46:59PM +0200, Miklos Vajna <vmiklos@frugalware.org> wrote: >> So far what I see is that the input for the reduce_heads() function is >> (c1, c0, c2, c0, c1). The expected output would be (c1, c2), but the >> actual output is c2. So I suspect the bug is not in builtin-merge.c >> itself but in reduce_heads(). > > This fixes the problem for me. Junio, does the fix looks correct to you > as well?
You are correct, the "item"s are the highlander (i.e. "there can be only one") objects but commit-list elements that hold pointers to them are not, so we need to dereference and compare.
Thanks.