]> git.ipfire.org Git - thirdparty/git.git/commit
merge-ort: store more specific conflict information
authorElijah Newren <newren@gmail.com>
Sat, 18 Jun 2022 00:20:56 +0000 (00:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2022 23:10:06 +0000 (16:10 -0700)
commitcb2607759e27627aca614726dc50e98ac0ba6d19
tree6c9d1cffbbc98eed4ad4396b59d2b26bcce56843
parent2715e8a931ce1ad3a7bcffbdc6c0e556ae87d158
merge-ort: store more specific conflict information

It is all fine and dandy for a regular Git command that is intended to
be run interactively to produce a bunch of messages upon an error.

However, in `merge-ort`'s case, we want to call the command e.g. in
server-side software, where the actual error messages are not quite as
interesting as machine-readable, immutable terms that describe the exact
nature of any given conflict.

With this patch, the `merge-ort` machinery records the exact type (as
specified via an `enum` value) as well as the involved path(s) together
with the conflict's message.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c