Re: [PATCH v2 60/94] apply: make init_apply_state() return -1 instead of exit()ing

2016-05-15 Thread Eric Sunshine
On Wed, May 11, 2016 at 9:17 AM, Christian Couder wrote: > 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",

[PATCH v2 60/94] apply: make init_apply_state() return -1 instead of exit()ing

2016-05-11 Thread Christian Couder
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", init_apply_state() should return -1 using error() instead of calling exit(). Signed-off-by: Christian