git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* conflict markers not documented
@ 2007-09-02 18:32 Alan M. Feldstein
  0 siblings, 0 replies; only message in thread
From: Alan M. Feldstein @ 2007-09-02 18:32 UTC (permalink / raw)
  To: git

I can't find Git conflict markers documented anywhere. If I do

    git pull git://icarus.com/~steve-icarus/verilog v0_8-branch

that results in files marked like this, for example

    <<<<<<< HEAD:Attrib.cc
    #ident "$Id: Attrib.cc,v 1.5 2002/08/12 01:34:58 steve Exp $"
    =======
    #ident "$Id: Attrib.cc,v 1.6 2004/02/20 18:53:33 steve Exp $"
     >>>>>>> f600e774d54f14d2cc2848ea5ef663233f8a6f6e:Attrib.cc

The git-pull(1) Manual Page 
<http://www.kernel.org/pub/software/scm/git/docs/git-pull.html> mentions 
conflicts in three places, but fails to document the markers or lead me 
to a page that does. The closest thing I've found is Git User's Manual 
(for version 1.5.3 or newer) 
<http://www.kernel.org/pub/software/scm/git/docs/user-manual.html> with

    <<<<<<< HEAD:file.txt
    Hello world
    =======
    Goodbye
     >>>>>>> 77976da35a11db4580b80ae27e8d65caf5208086:file.txt

but it fails to explain which is which, only stating that "All you need 
to do is edit the files to resolve the conflicts ...". That's not enough 
information.

In _Essential CVS_ by Jennifer Vesperman, she documents (even more 
clearly than the Cederqvist) CVS conflict markers like this

    <<<<<<< filename
    sandbox content
    =======
    repository content
     >>>>>>> revision

 >From this, I can infer that

    #ident "$Id: Attrib.cc,v 1.5 2002/08/12 01:34:58 steve Exp $"

was my Git repository content and

    #ident "$Id: Attrib.cc,v 1.6 2004/02/20 18:53:33 steve Exp $"

was the other repository content (from which I fetched).

But I shouldn't need to refer to a CVS book to understand Git. Git's 
documentation should have made this clear. So I'm not writing this to 
ask for confirmation of my inference from the Git mailing list. I'm 
writing this to ask that the Git documentation be improved to adequately 
explain conflict markers.
-- 

Alan Feldstein

Cosmic Horizon logo

http://www.alanfeldstein.com/

+1 585 415 6682

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-02 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-02 18:32 conflict markers not documented Alan M. Feldstein

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).