From: Sergey Organov Date: Fri, 11 Jun 2021 18:22:39 GMT Subject: Re: [PATCH 7/7] xdiff: make diff3 the default conflictStyle Message-ID: <87fsxob6s0.fsf@osv.gnss.ru> In-Reply-To: <60c3a7058af24_8d0f20833@natae.notmuch> Felipe Contreras writes: > Sergey Organov wrote: >> Felipe Contreras writes: >> >> > Johannes Sixt wrote: >> >> then diff3 must display the conflict as >> >> >> >> 1256 >> >> >> >> to be technically correct. RCS style can coalesce A and C outside of the >> >> conflict and display it as >> >> >> >> 12AC34 >> >> >> >> and *that* is the helpful part of this simpler style. >> > >> > I have trouble translating the above to what I'm familiar with in my >> > mind, so... >> > >> > diff2: >> > >> > 1 >> > 2 >> > A >> > <<<<<<< l >> > B >> > ======= >> > X >> > >>>>>>> r >> > C >> > 5 >> > 6 >> > >> > diff3: >> > >> > 1 >> > 2 >> > <<<<<<< l >> > A >> > B >> > C >> > ||||||| b >> > 3 >> > 4 >> > ======= >> > A >> > X >> > C >> > >>>>>>> r >> > 5 >> > 6 >> > >> > I personally don't mind at all having a few extra lines in order to >> > visualize what actually happened. >> >> Plus a good tool should have an option to quickly show a diff between any >> 2 of 3 parts, making analysis even simpler. > > Indeed, it depends on the mergetool, but personally I use vimdiff3 > (which I authored). All I need are diff3 conflict markers plus some > colors. Emacs's smerge-mode works fine too. In fact that was what made me switch to diff3 in git config. Thanks, -- Sergey Organov