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

Re: [RFC PATCH] mergetools/vimdiff: add vimdiff4 merge tool variant

From
Fernando Ramos <greenfoo@u92.eu>
Date
Oct 19, 2021, 22:12 UTC
Message-ID
<YW9C4KvsXSQOCX/w@zacax395.localdomain>
In-Reply-To
<20211019212020.25385-1-greenfoo@u92.eu>
On 21/10/19 11:20PM, Fernando Ramos wrote:
> This new vimdiff4 variant of the merge-tool opens three tabs...
> 

One reason why this RFC should *not* be merged is that the same functionality can be achieved right now by simply adding these two lines to "~/.config/git/config":

  [mergetool "vimdiff4"]
  	cmd = vim -f -d -c \"4wincmd w | wincmd J | tabnew | edit $LOCAL | vertical diffsplit $BASE | tabnew | edit $REMOTE | vertical diffsplit $BASE | 2tabprevious\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" \"$MERGED\"
  	trustExitCode = true

On the other hand, one reason to merge it is that this new windows/tabs arrangement is so useful when solving complex merges, that it would be nice to have it available by default for easier discoverablility.

Let me know what you think :)
Previous: Fernando RamosNext: David Aguilar
Message 2 of 6 in “mergetools/vimdiff: add vimdiff4 merge tool variant”
  1. mergetools/vimdiff: add vimdiff4 merge tool variantFernando Ramos, Oct 19, 2021
  2. Fernando RamosOct 19, 2021
  3. David AguilarOct 24, 2021
  4. Junio C HamanoOct 25, 2021
  5. Fernando RamosOct 25, 2021
  6. Junio C HamanoOct 27, 2021

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.