builtin/apply: make check_apply_state() return -1 instead of die()ing
commitf36538d88b12595d527c60ae1b882c89bb5d1b2a
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Aug 2016 21:03:09 +0000 (8 23:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2016 19:41:47 +0000 (11 12:41 -0700)
tree4928fe9f23bbfb882cc90262d6e498c65f2fafb9
parent2f5a6d1218de4dfa326ff289b784d3e293b8141f
builtin/apply: make check_apply_state() return -1 instead of die()ing

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

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

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c