From: Christian Couder Date: Mon, 8 Aug 2016 21:03:04 +0000 (+0200) Subject: builtin/apply: make parse_single_patch() return -1 on error X-Git-Tag: v2.14.0-rc0~29^2~24 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c?ds=inline;hp=dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c 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 Signed-off-by: Junio C Hamano ---