builtin/apply: make write_out_results() return -1 on error
authorChristian Couder <redacted>
Mon, 8 Aug 2016 21:03:22 +0000 (23:03 +0200)
committerJunio C Hamano <redacted>
Thu, 11 Aug 2016 19:41:47 +0000 (12:41 -0700)
commitccceb7bb13a37b1834bc1c455e40abc710997dd3
tree7c768fa5307e606ab70dc8b877c6aa49b08ef34b
parent434389deb193016464702b25af2b79bb5c6fd098
builtin/apply: make write_out_results() return -1 on error

To libify `git apply` functionality we have to signal errors to the
caller instead of exit()ing.

To do that in a compatible manner with the rest of the error handling
in "builtin/apply.c", write_out_results() should return -1 instead of
calling exit().

Helped-by: Eric Sunshine <redacted>
Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/apply.c
git clone https://git.99rst.org/PROJECT