Junio C Hamano <gitster@xxxxxxxxx> writes: > Nelson Elhage <nelhage@xxxxxxx> writes: > >> Some tools, such as emacs' smerge-mode, except that diff3-style merge >> conflict markers always include a trailing space (and optional >> description) after the marker, and so fail to correctly detect >> git's (notably the '|||||||' base marker, for which git never outputs a >> trailing space). >> >> (See http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3553 >> for the emacs issue) >> >> Signed-off-by: Nelson Elhage <nelhage@xxxxxxx> >> --- >> xdiff/xmerge.c | 11 ++++++++--- >> 1 files changed, 8 insertions(+), 3 deletions(-) > > Thanks, but I think you also need to update the test scripts. > > Don't you want some new tests to protect this from getting broken > in the future by other people yourself, too? I actually changed my mind. The plain "diff3" (from GNU diffutils 2.8.1) does not seem to give an trailing space after ||||||| separator. It feels very wrong to change the output format to work around a bug in smerge-mode (which I never use, by the way), if we are not the only offender. With this change, we may be breaking something else that relied on the "diff3" output format that does not have such a trailing space. I'll drop this patch. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html