merge-recursive: switch to returning errors instead of dying
commit6003303a1e5086a9f28f18469a8a72ad22f75c86
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 26 Jul 2016 16:06:26 +0000 (26 18:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jul 2016 18:13:44 +0000 (26 11:13 -0700)
tree3d99825c1f28b95c13a7ed79021d24e4a81bdf22
parent75456f96d4bd201f815484e9d2ff2ae429305ab5
merge-recursive: switch to returning errors instead of dying

The recursive merge machinery is supposed to be a library function, i.e.
it should return an error when it fails. Originally the functions were
part of the builtin "merge-recursive", though, where it was simpler to
call die() and be done with error handling.

The existing callers were already prepared to detect negative return
values to indicate errors and to behave as previously: exit with code 128
(which is the same thing that die() does, after printing the message).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c