git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Strange merge output.

From
David Kastrup <dak@gnu.org>
Date
Jan 30, 2014, 11:24 UTC
Message-ID
<87y51x4sr4.fsf@fencepost.gnu.org>
In-Reply-To
<55DE3FAC-BD7E-4AB2-8A18-CF85BB859465@kameleoon.com>
Vincent Bernardi <vincent@kameleoon.com> writes:
Show 27 quoted lines
> Hi,
> I asked about this problem on #git@freenode and someone suggested I
> submit it to this list. I have a case where the output of a merge
> gives a conflict and produces the following file:
>
> Code Block A
> <<<<<<< HEAD
> =======
> Code Block B
>>>>>>>> branch-B
> Code Block B' (similar to code block B but not exactly the same).
>
> Here is what HEAD looks like 
> Code Block A
> Code Block B' 
>
> and branch-B:
> Code Block A
> Code Block B
>
> I thought that taking a conflicted file like above and removing the
> three following lines:
> <<<<<<< HEAD
> =======
>>>>>>>> branch-B
>
> was supposed to produce *exactly* the branch-B version?

No? It will produce the branch-B version in the conflicted area, but that does not mean that conflict resolution might not have been done outside of that area.

-- 
David Kastrup
Previous: Vincent Bernardi
Message 2 of 2 in “Strange merge output.”
  1. Vincent BernardiJan 30, 2014
  2. David KastrupJan 30, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.