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

mergetool.vimdiff.layout behavior differs from documentation

From
Kkawarimidoll <kawarimidoll+git@gmail.com>
Date
Mar 24, 2025, 14:52 UTC
Message-ID
<CAC6paJg19ue7W0VxTnGH-1ra3Zkk+pRnj6McEC755RD54xDzCA@mail.gmail.com>
Hello,

This is my first time reporting an issue with Git. I am not a native English speaker, so I apologize if there are any translation mistakes.

Below is my response to `git bugreport`:
> What did you do before the bug happened? (Steps to reproduce your issue)
1. I checked the `git mergetool --help` documentation and configured
`$ git config --global mergetool.vimdiff.layout "@REMOTE"`.
2. In a repository with merge conflicts, I opened vimdiff using `git
mergetool`, updated the REMOTE buffer, and saved the changes.
> What did you expect to happen? (Expected behavior)
I expected the changes made to the REMOTE buffer to be reflected in the file.
> What happened instead? (Actual behavior)
The changes made to the REMOTE buffer were **not** reflected in the file.
> What’s different between what you expected and what actually happened?

The documentation states: ”@ is used to indicate the file containing the final version after solving the conflicts. If not present, MERGED will be used by default.” So I thought that the changes made to the REMOTE buffer will be reflected in the file if I use @REMOTE. However, in my tests, @LOCAL and @MERGED worked as expected, but @BASE and @REMOTE did not behave correctly.

> Anything else you want to add:

I’ve uploaded a video reproducing this issue to a GitHub Gist. Please check here: https://gist.github.com/kawarimidoll/3e603664432702e434c27f343fb35f85

[System Info]
git version:
git version 2.48.1
cpu: aarch64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /nix/store/3z1jypscq2ld48kl089ywgwd8ri2rjxq-bash-5.2p37/bin/bash
feature: fsmonitor--daemon
libcurl: 8.12.1
OpenSSL: OpenSSL 3.4.1 11 Feb 2025
zlib: 1.3.1
uname: Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23
PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64
compiler info: clang: 19.1.7
libc info: no libc information available
$SHELL (typically, interactive shell): /bin/zsh
I appreciate your time in reviewing this. Thank you!
kawarimidoll
GitHub: https://github.com/kawarimidoll
Next: D. Ben Knoble
Message 1 of 3 in “mergetool.vimdiff.layout behavior differs from documentation”
  1. kawarimidollMar 24, 2025
  2. D. Ben KnobleMar 24, 2025
  3. Fernando RamosMar 24, 2025

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.