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

Re: [PATCH v4] mergetools: vimdiff: use correct tool's name when reading mergetool config

From
Kipras Melnikovas <kipras@kipras.org>
Date
Feb 21, 2024, 05:20 UTC
Message-ID
<20240221052041.53239-1-kipras@kipras.org>
In-Reply-To
<xmqq8r3fyhhg.fsf@gitster.g>
On 24/02/19 06:52PM, Junio C Hamano wrote:
> That's curious.  This is v4 and no changes from v3?

My bad. The patches are slightly different [1], I just managed to screw up the range-diff args [2]. Won't happen again [3].

Sorry, I know this is wasting your time; this whole submission should've been a single reroll not 3. I'll be more thorough next time.

Thank you for your time, help and quick responses.
Kipras
---
[3] https://github.com/kiprasmel/git-reroll/commit/3aa14a2860b19f86bb51f70ce0d5cec99a5aca59#diff-59ce06aeaf7a77de81c8f24c0301d95d017a83fdaec8bc1dce9877af708d1ad3R213-R227

[2] What essentially happened was: I marked a new checkpoint "v4" *before* sending the email, and ran format-patch with --range-diff "<checkpoint>..@", which of course was "v4 against v4" instead of "v3 against v4"..

[1] fwiw,
Range-diff against v3:
1:  60be87c3d5 ! 1:  0018c7e18c mergetools: vimdiff: use correct tool's name when reading mergetool config
    @@ Documentation/config/mergetool.txt: mergetool.meld.useAutoMerge::
     -	windows appear. Applies even if you are using Neovim (`nvim`) or
     -	gVim (`gvim`) as the merge tool. See BACKEND SPECIFIC HINTS section
     +mergetool.<vimdiff variant>.layout::
    -+	Git's vimdiff backend uses this variable to control how the split windows of
    -+	`<vimdiff variant>` appear. Here `<vimdiff variant>` is any of `vimdiff`,
    -+	`nvimdiff`, `gvimdiff`. To configure the layout and use the tool, see the
    -+	`BACKEND SPECIFIC HINTS`
    ++	Configure the split window layout for vimdiff's `<variant>`, which is any of `vimdiff`,
    ++	`nvimdiff`, `gvimdiff`.
    ++	Upon launching `git mergetool` with `--tool=<variant>` (or without `--tool`
    ++	if `merge.tool` is configured as `<variant>`), Git will consult
    ++	`mergetool.<variant>.layout` to determine the tool's layout. If the
    ++	variant-specific configuration is not available, `vimdiff`'s is used as
    ++	fallback.  If that too is not available, a default layout with 4 windows
    ++	will be used.  To configure the layout, see the `BACKEND SPECIFIC HINTS`
     +ifdef::git-mergetool[]
     +	section.
     +endif::[]
    @@ Documentation/config/mergetool.txt: mergetool.meld.useAutoMerge::
      mergetool.hideResolved::
      	During a merge, Git will automatically resolve as many conflicts as
     
    + ## Documentation/mergetools/vimdiff.txt ##
    +@@ Documentation/mergetools/vimdiff.txt: Instead of `--tool=vimdiff`, you can also use one of these other variants:
    + 
    + When using these variants, in order to specify a custom layout you will have to
    + set configuration variables `mergetool.gvimdiff.layout` and
    +-`mergetool.nvimdiff.layout` instead of `mergetool.vimdiff.layout`
    ++`mergetool.nvimdiff.layout` instead of `mergetool.vimdiff.layout` (though the
    ++latter will be used as fallback if the variant-specific one is not set).
    + 
    + In addition, for backwards compatibility with previous Git versions, you can
    + also append `1`, `2` or `3` to either `vimdiff` or any of the variants (ex:
    +
      ## mergetools/vimdiff ##
     @@ mergetools/vimdiff: diff_cmd_help () {
 Documentation/config/mergetool.txt   | 19 +++++++++++++------
 Documentation/mergetools/vimdiff.txt |  3 ++-
 mergetools/vimdiff                   | 12 ++++++++++--
 3 files changed, 25 insertions(+), 9 deletions(-)
Previous: Junio C Hamano
Message 8 of 8 in “mergetools: vimdiff: use correct tool's name when reading mergetool config”
  1. mergetools: vimdiff: use correct tool's name when reading mergetool configKipras Melnikovas, Feb 15, 2024
  2. mergetools: vimdiff: use correct tool's name when reading mergetool configKipras Melnikovas, Feb 15, 2024
  3. Junio C HamanoFeb 15, 2024
  4. Fernando RamosFeb 15, 2024
  5. mergetools: vimdiff: use correct tool's name when reading mergetool configKipras Melnikovas, Feb 17, 2024
  6. mergetools: vimdiff: use correct tool's name when reading mergetool configKipras Melnikovas, Feb 17, 2024
  7. Junio C HamanoFeb 20, 2024
  8. Kipras MelnikovasFeb 21, 2024

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.