summaryrefslogtreecommitdiff
path: root/base85.c
diff options
context:
space:
mode:
authorLibravatar Christian Couder <christian.couder@gmail.com>2016-08-08 23:03:00 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-11 12:41:46 -0700
commitf07a9f7643c8b261b5d03d9c288c44916277f05e (patch)
tree1c15ccf83418f8500be662840e237daf9dd88caf /base85.c
parentapply: move 'struct apply_state' to apply.h (diff)
downloadtgif-f07a9f7643c8b261b5d03d9c288c44916277f05e.tar.xz
builtin/apply: make apply_patch() return -1 or -128 instead of die()ing
To libify `git apply` functionality we have to signal errors to the caller instead of die()ing. As a first step in this direction, let's make apply_patch() return -1 or -128 in case of errors instead of dying. For now its only caller apply_all_patches() will exit(128) when apply_patch() return -128 and it will exit(1) when it returns -1. We exit() with code 128 because that was what die() was doing and we want to keep the distinction between exiting with code 1 and exiting with code 128. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'base85.c')
0 files changed, 0 insertions, 0 deletions