]> git.ipfire.org Git - thirdparty/git.git/commit
apply: support --ours, --theirs, and --union for three-way merges
authorAlex Henrie <alexhenrie24@gmail.com>
Mon, 9 Sep 2024 14:10:58 +0000 (08:10 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Sep 2024 17:07:24 +0000 (10:07 -0700)
commit57f583c748fdc65c16d1c24a7060a758850cb4a2
tree1d30980a14e35a0d2710d03888d3e4e93dbd6f63
parent4c42d5ff284067fa32837421408bebfef996bf81
apply: support --ours, --theirs, and --union for three-way merges

--ours, --theirs, and --union are already supported in `git merge-file`
for automatically resolving conflicts in favor of one version or the
other, instead of leaving conflict markers in the file. Support them in
`git apply -3` as well because the two commands do the same kind of
file-level merges.

In case in the future --ours, --theirs, and --union gain a meaning
outside of three-way-merges, they do not imply --3way but rather must be
specified alongside it.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-apply.txt
apply.c
apply.h
t/t4108-apply-threeway.sh