builtin/apply: make parse_traditional_patch() return -1 on error
commit9724e6ff48506323ab897e2d9f8d27febd4d9bb0
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Aug 2016 21:03:12 +0000 (8 23:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2016 19:41:47 +0000 (11 12:41 -0700)
treebb5f9a7ba23b6599a499d7f2ea6127e2ecdf4fde
parentfef7ba5353095e87b3bcd712fa15eb71e1f53b30
builtin/apply: make parse_traditional_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_traditional_patch() should return -1
instead of calling die().

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c