Re: [PATCH 1/1] merge-recursive: avoid directory rename detection in recursive case
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 6, 2019, 17:49 UTC
- Message-ID
- <xmqqsgqejiad.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <xmqq1rxykz91.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> I do agree that it is sensible to avoid doing any funky thing during > the virtual base merges, whose result is much less observable (hence > harder to form the right mental model in end user's head) than the > outermost merge. Do we want to allow this for inner merges when the > setting is 2? Wouldn't that hit the same BUG()?
Ah, actually no. 2 would make a choice of committing to one possible merge result and does not leave options to be resolved as conflicted, so we should be able to write out its decision as a tree. If we cannot form a tree object when operating with 2, we do have a bug and we do want to know about it.