]> git.ipfire.org Git - thirdparty/git.git/commit
merge-file: honor merge.conflictStyle outside of a repository
authorYannik Tausch <dev@ytausch.de>
Sat, 7 Feb 2026 21:37:48 +0000 (22:37 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Feb 2026 01:04:26 +0000 (17:04 -0800)
commit8600b4ec9ef9577408194a99066c356f38139b06
tree29fd6299e5fdb57c441f8fbf1be3592007eda9f7
parent3e0db84c88c57e70ac8be8c196dfa92c5d656fbc
merge-file: honor merge.conflictStyle outside of a repository

When running outside a repository, git merge-file ignores the
merge.conflictStyle configuration variable entirely. Since the
function receives `repo` from the caller (which is NULL outside a
repository), and repo_config() falls back to reading system and user
configuration when passed NULL, pass `repo` to repo_config()
unconditionally.

Also document that merge.conflictStyle is honored.

Signed-off-by: Yannik Tausch <dev@ytausch.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-merge-file.adoc
builtin/merge-file.c
t/t6403-merge-file.sh