summaryrefslogtreecommitdiff
path: root/exec_cmd.h
diff options
context:
space:
mode:
authorLibravatar Christian Couder <christian.couder@gmail.com>2016-08-08 23:03:02 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-11 12:41:46 -0700
commit5950851e44fc6f19e9fc9261bac4a61e59fc5121 (patch)
treeace39a2c5bf09604002357a5b1dc61274c6ecd06 /exec_cmd.h
parentbuiltin/apply: read_patch_file() return -1 instead of die()ing (diff)
downloadtgif-5950851e44fc6f19e9fc9261bac4a61e59fc5121.tar.xz
builtin/apply: make find_header() return -128 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, let's make find_header() return -128 instead of calling die(). We could make it return -1, unfortunately find_header() already returns -1 when no header is found. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'exec_cmd.h')
0 files changed, 0 insertions, 0 deletions