summaryrefslogtreecommitdiff
path: root/sh-i18n--envsubst.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-08-08 21:03:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-11 19:41:46 (GMT)
commitdae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c (patch)
tree7d92b1e485763ec180831f1f7b0e211effbefaf4 /sh-i18n--envsubst.c
parentb654b34c1cf877709febb602991f46e7ba0d947d (diff)
downloadgit-dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c.zip
git-dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c.tar.gz
git-dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c.tar.bz2
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 'sh-i18n--envsubst.c')
0 files changed, 0 insertions, 0 deletions