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

Conflict markers in mergetool $LOCAL ?

From
Seth House <seth@eseth.com>
Date
Aug 17, 2010, 04:34 UTC
Message-ID
<loom.20100817T054731-955@post.gmane.org>

Hello. I'm a recent convert from Mercurial; I'm enjoying the transition and am feeling pretty comfortable with most of Git. However, I haven't used mergetool much yet because it puts conflict markers in the "ours" pane -- but (even after a chat in #git on IRC) I'm not sure if that is intended behavior or if my setup is broken. I would appreciate some guidance.

For small conflicts, I like the conflict markers and simply editing the conflicted file with Vim. For files with lots of conflicts I would like to use vimdiff but I wouldn't expect the conflict markers to appear there -- it's redundant information in a 3-way merge.

Is there a better Git Way (TM) that I'm missing? Is my Git setup borked somehow?

I have the following in my ~/.gitconfig and a stock Git installation on Arch Linux.

[merge]
    tool = vimdiff
[mergetool "vimdiff"]
    cmd = vimdiff
    trustExitCode = true
Next: David Aguilar
Message 1 of 8 in “Conflict markers in mergetool $LOCAL ?”
  1. Seth HouseAug 17, 2010
  2. David AguilarAug 17, 2010
  3. David AguilarAug 17, 2010
  4. Seth HouseAug 17, 2010
  5. Jacob HelwigAug 17, 2010
  6. Seth HouseAug 17, 2010
  7. Charles BaileyAug 17, 2010
  8. Seth HouseAug 18, 2010

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.