builtin/apply: make remove_file() return -1 on error
commit6e8df314692105e7d3e69f548440e4b817bf3211
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Aug 2016 21:03:17 +0000 (8 23:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2016 19:41:47 +0000 (11 12:41 -0700)
treea33417bf38a20331e92d67ec5f89d002d7c2cf8d
parentfe41b8022560e24c1617cc8b3bd11b72bd1ff4bd
builtin/apply: make remove_file() return -1 on error

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", remove_file() 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