diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-08-08 21:03:21 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-11 19:41:47 (GMT) |
commit | 434389deb193016464702b25af2b79bb5c6fd098 (patch) | |
tree | a0f8f119116a1cabd2562ff7610d1e5f80dbd30a /builtin/rev-parse.c | |
parent | 8f5b5445d7c015dc5f2bbf65d23779d355c0c36e (diff) | |
download | git-434389deb193016464702b25af2b79bb5c6fd098.zip git-434389deb193016464702b25af2b79bb5c6fd098.tar.gz git-434389deb193016464702b25af2b79bb5c6fd098.tar.bz2 |
builtin/apply: make write_out_one_result() 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_one_result() should just return what
remove_file() and create_file() are returning instead of calling
exit().
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-parse.c')
0 files changed, 0 insertions, 0 deletions