]> git.ipfire.org Git - thirdparty/git.git/commit - advice.c
merge-ort: turn submodule conflict suggestions into an advice
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Mon, 26 Feb 2024 13:27:28 +0000 (13:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Feb 2024 18:07:01 +0000 (10:07 -0800)
commitb9e55be7401a5413722299279fc867eb931f4c3b
tree9b72bdd8c81db8e6b55e025fbc039b4c2c625e11
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
merge-ort: turn submodule conflict suggestions into an advice

Add a new advice type 'submoduleMergeConflict' for the error message
shown when a non-trivial submodule conflict is encountered, which
was added in 4057523a40 (submodule merge: update conflict error
message, 2022-08-04). That commit mentions making this message an
advice as possible future work.  The message can now be disabled
with the advice mechanism.

Update the tests as the expected message now appears on stderr instead
of stdout.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/advice.txt
advice.c
advice.h
merge-ort.c
t/t6437-submodule-merge.sh
t/t7402-submodule-rebase.sh