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

Re: [PATCH 0/1] mergetools/vimdiff: add vimdiff1 merge tool variant

From
Philippe Blain <levraiphilippeblain@gmail.com>
Date
Feb 25, 2021, 18:45 UTC
Message-ID
<b3467a47-dffd-154f-76f9-e09b8145a5e5@gmail.com>
In-Reply-To
<20210214022840.849312-1-seth@eseth.com>
Hi Seth,
Le 2021-02-13 à 21:28, Seth House a écrit :
Show 8 quoted lines
> Add yet another vimdiff layout variant to present the simplest possible
> two-way diff when resolving conflicts.
> 
> The name is an attempt at UNIX-style humor -- vimdiff3 opens four
> buffers and vimdiff2 opens three buffers so vimdiff1 should therefore
> open two buffers. It also communicates that vimdiff will be used and
> fits cleanly into the existing layout variant naming. That said,
> suggestions welcome if that isn't as great a fit as I think it is. :)

I like the name :P Slightly orthogonal though, when I first looked at the output of 'git mergetool --tool-help', I was sort of confused by vimdiff2 and vimdiff3 (and some others) because I looked for them in PATH and (of course) could not find them, still Git was telling me they were available.

I think it would be good to add a short note about these variants somewhere in Documentation/git-mergetool.txt. Might be in this patch, or not if you don't feel like it...

Going further, we could even add a short (few words) description of each tool and have that description show up in the output of 'git mergetool --tool-help', something like this:

$ git mergetool --tool-help
'git mergetool --tool=<tool>' may be set to one of the following:
		emerge		Emacs (Emerge)
		opendiff	Apple FileMerge
		vimdiff		Vim (??)
		vimdiff2	Vim (3 panes)
		vimdiff3	Vim (4 panes)
Cheers,
Philippe.
Previous: Seth HouseNext: Seth House
Message 6 of 11 in “mergetools/vimdiff: add vimdiff1 merge tool variant”
  1. 0/1 mergetools/vimdiff: add vimdiff1 merge tool variantSeth House, Feb 14, 2021
  2. 1/1 mergetools/vimdiff: add vimdiff1 merge tool variantSeth House, Feb 14, 2021
  3. Junio C HamanoFeb 16, 2021
  4. David AguilarFeb 23, 2021
  5. Seth HouseFeb 25, 2021
  6. Philippe BlainFeb 25, 2021
  7. Seth HouseFeb 26, 2021
  8. Junio C HamanoFeb 26, 2021
  9. Seth HouseFeb 26, 2021
  10. Junio C HamanoFeb 27, 2021
  11. Seth HouseFeb 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.