Re: [PATCH] builtin-rerere: fix conflict markers parsing
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 7, 2008, 17:39 UTC
- Message-ID
- <7vy74d4mr8.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0807071400180.18205@racer>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
> So what about > > <<<<<<< This hunk contains ===== > anythin > ======= > > Hello > ======= > somethin else > >>>>>>> problem! > > > If you fix it, I think you should do it properly, and analyze the index.
I do not know offhand if analyzing the index is the right solution, but your point is very valid. You need to know which ====== is the real one to be able to properly flip sides of the conflict.
I however think detecting that we have this ambiguous hunk is easy, and punting gracefully and not re-resolving in such a case is million times better than producing random results that the users need to be worried about.