aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.diff_--patch-with-stat_initial..side
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-08-08 23:03:00 +0200
committerJunio C Hamano <gitster@pobox.com>2016-08-11 12:41:46 -0700
commitf07a9f7643c8b261b5d03d9c288c44916277f05e (patch)
tree1c15ccf83418f8500be662840e237daf9dd88caf /t/t4013/diff.diff_--patch-with-stat_initial..side
parentapply: move 'struct apply_state' to apply.h (diff)
downloadgit-f07a9f7643c8b261b5d03d9c288c44916277f05e.tar.gz
git-f07a9f7643c8b261b5d03d9c288c44916277f05e.zip
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 't/t4013/diff.diff_--patch-with-stat_initial..side')
0 files changed, 0 insertions, 0 deletions