]> git.ipfire.org Git - thirdparty/git.git/commit - merge-recursive.c
merge: make merge.renormalize work for all uses of merge machinery
authorElijah Newren <newren@gmail.com>
Mon, 3 Aug 2020 18:41:19 +0000 (18:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2020 18:48:15 +0000 (11:48 -0700)
commit8d552258f45ba3886e8d508ece8585b509a04677
treebc42b9dd566d13f8f3e1e8174bdd531b0d6c4275
parent6f6e7cfb52a07578c275656a8fd735265eca1a07
merge: make merge.renormalize work for all uses of merge machinery

The 'merge' command is not the only one that does merges; other commands
like checkout -m or rebase do as well.  Unfortunately, the only area of
the code that checked for the "merge.renormalize" config setting was in
builtin/merge.c, meaning it could only affect merges performed by the
"merge" command.  Move the handling of this config setting to
merge_recursive_config() so that other commands can benefit from it as
well.  Fixes a few tests in t6038.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/merge.c
merge-recursive.c
t/t6038-merge-text-auto.sh