Re: SEGV in git-merge recursive:
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 31, 2007, 11:22 UTC
- Message-ID
- <Pine.LNX.4.63.0703311319190.4045@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <Pine.LNX.4.64.0703301728510.6730@woody.linux-foundation.org>
Hi,
On Fri, 30 Mar 2007, Linus Torvalds wrote:
Show 10 quoted lines
> On Fri, 30 Mar 2007, Johannes Schindelin wrote: > > > IMHO, there is actually no way merge_trees() can fix the conflicts > > enough to write a tree. > > > > So, the only way I see to avoid that SEGV is to something like this: > > I disagree. > > It's much better to give a bad intermediate tree than to give up entirely.
Hmm.
What we _could_ do: if the index still contains unmerged entries, then we collapse these into files with conflict markers (in case the file cannot be written, because a directory of the same name exists, we have to save with a unique name, complaining loudly about it, i.e. without using output()).
I will not have time to implement this until later this week, though.
Ciao, Dscho