diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-08-08 23:03:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-11 12:41:46 -0700 |
commit | dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c (patch) | |
tree | 7d92b1e485763ec180831f1f7b0e211effbefaf4 /check-builtins.sh | |
parent | b654b34c1cf877709febb602991f46e7ba0d947d (diff) | |
download | git-dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c.tar.gz |
builtin/apply: make parse_single_patch() return -1 on error
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, parse_single_patch() should return a negative
integer instead of calling die().
Let's do that by using error() and let's adjust the related test
cases accordingly.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check-builtins.sh')
0 files changed, 0 insertions, 0 deletions