git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Merge format documented?
@ 2009-03-23  3:19 Andreas Gruenbacher
  2009-03-23  3:50 ` Junio C Hamano
  2009-03-27 16:05 ` Jakub Narebski
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Gruenbacher @ 2009-03-23  3:19 UTC (permalink / raw)
  To: git

Hello,

is the format that git normally uses for indicating merge conflicts in files 
(the <<< === >>> markers) documented somewhere?  How exactly does it differ 
from the diff3 format (<<< ||| === >>>)?  Diff3's -m mode seems to come close 
to what git does, except that git doesn't produce the ||| section:

	$ seq 1 7 > a
	$ seq 1 7 | sed -e 's/4/4b/' > b
	$ seq 1 7 | sed -e 's/3/3c/' > c
	$ diff3 -m c a b
	> 1
	> 2
	> <<<<<<< c
	> 3c
	> 4
	> ||||||| a
	> 3
	> 4
	> =======
	> 3
	> 4b
	> >>>>>>> b
	> 5
	> 6
	> 7

Git's output in this case is:

	> 1
	> 2
	> <<<<<<< this-branch
	> 3c
	> 4
	> =======
	> 3
	> 4b
	> >>>>>>> merged-branch
	> 5
	> 6
	> 7

Does git ever output a ||| section?

Thanks,
Andreas

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-27 16:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23  3:19 Merge format documented? Andreas Gruenbacher
2009-03-23  3:50 ` Junio C Hamano
2009-03-23  7:18   ` Andreas Gruenbacher
2009-03-23  7:52     ` Junio C Hamano
2009-03-23  9:17       ` Johannes Sixt
2009-03-27 16:05 ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).