]> git.ipfire.org Git - thirdparty/git.git/commit
merge-ort: provide helpful submodule update message when possible
authorElijah Newren <newren@gmail.com>
Thu, 18 Aug 2022 07:15:27 +0000 (07:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Aug 2022 16:49:30 +0000 (09:49 -0700)
commit565577ed883057d9935cfc56e33be8d4abd9a2fc
tree274422d535bc7bcd7f747f4697b83e5e26f72fe5
parent34ce504a33cca435b3fc689c3e2a0ae2f71d5a85
merge-ort: provide helpful submodule update message when possible

In commit 4057523a40 ("submodule merge: update conflict error message",
2022-08-04), a more detailed message was provided when submodules
conflict, in order to help users know how to resolve those conflicts.
There were a couple situations for which a different message would be
more appropriate, but that commit left handling those for future work.
Unfortunately, that commit would check if any submodules were of the
type that it didn't know how to explain, and, if so, would avoid
providing the more detailed explanation even for the submodules it did
know how to explain.

Change this to have the code print the helpful messages for the subset
of submodules it knows how to explain.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c