public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* [DOC] merge-file: document that merge.conflictStyle requires a repository
@ 2026-02-05 15:06 Yannik Tausch
  2026-02-05 19:11 ` Junio C Hamano
  0 siblings, 1 reply; 12+ messages in thread
From: Yannik Tausch @ 2026-02-05 15:06 UTC (permalink / raw)
  To: git; +Cc: Manuel Lerchner, Yannik Tausch, gitster

Hi,

We noticed that `git merge-file` only respects the `merge.conflictStyle`
configuration when run inside a repository. Outside a repository, the
setting is ignored and only the `--diff3`/`--zdiff3` flags work.

Looking at the history, this appears to be intentional since b541248467
("merge.conflictstyle: choose between merge and diff3 -m styles", 2008),
which explicitly gates config reading on being inside a repository.

This behavior surprised me, and I couldn't find it documented anywhere.
Would a small documentation patch to git-merge-file.txt be welcome,
noting that the config is only read when inside a repository?

Something like adding to the --diff3 option description:

  When run inside a repository, the `merge.conflictStyle`
  configuration variable can be used as a default for this option.

Thanks,

Yannik Tausch

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-02-09 16:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 15:06 [DOC] merge-file: document that merge.conflictStyle requires a repository Yannik Tausch
2026-02-05 19:11 ` Junio C Hamano
2026-02-05 20:27   ` [PATCH] merge-file: honor merge.conflictStyle outside of " Yannik Tausch
2026-02-05 20:44     ` Junio C Hamano
2026-02-05 20:51     ` Kristoffer Haugsbakk
2026-02-05 21:55       ` [PATCH v2] " Yannik Tausch
2026-02-06 21:53         ` Junio C Hamano
2026-02-07 21:28           ` Yannik Tausch
2026-02-07 21:37             ` Yannik Tausch
2026-02-07 21:47               ` Kristoffer Haugsbakk
2026-02-09  9:08               ` Patrick Steinhardt
2026-02-09 16:13                 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox