merge-ort: add an err() function similar to one from merge-recursive
authorElijah Newren <redacted>
Sun, 13 Dec 2020 08:04:12 +0000 (08:04 +0000)
committerJunio C Hamano <redacted>
Sun, 13 Dec 2020 22:18:19 +0000 (14:18 -0800)
commit0c0d705b5cba39c70b01b8b21e2c4d3ca014daf3
tree78c6520da3daf05273074fb144b4de1c17819515
parentc8017176ac8fb5cc85ca8742bbdeec8943427340
merge-ort: add an err() function similar to one from merge-recursive

Various places in merge-recursive used an err() function when it hit
some kind of unrecoverable error.  That code was from the reusable bits
of merge-recursive.c that we liked, such as merge_3way, writing object
files to the object store, reading blobs from the object store, etc.  So
create a similar function to allow us to port that code over, and use it
for when we detect problems returned from collect_merge_info()'s
traverse_trees() call, which we will be adding next.

While we are at it, also add more documentation for the "clean" field
from struct merge_result, particularly since the name suggests a boolean
but it is not quite one and this is our first non-boolean usage.

Signed-off-by: Elijah Newren <redacted>
Signed-off-by: Junio C Hamano <redacted>
merge-ort.c
merge-ort.h
git clone https://git.99rst.org/PROJECT