summaryrefslogtreecommitdiff
path: root/line-log.h
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-08-08 21:03:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-11 19:41:47 (GMT)
commitdbf1b5fb6a86acafd8294e98b464e2aa370fdde0 (patch)
treec60cd54e0109ea859c737de9021701b598c1eb29 /line-log.h
parent70af7662d47ac9f450c248720a379a8db817163b (diff)
downloadgit-dbf1b5fb6a86acafd8294e98b464e2aa370fdde0.zip
git-dbf1b5fb6a86acafd8294e98b464e2aa370fdde0.tar.gz
git-dbf1b5fb6a86acafd8294e98b464e2aa370fdde0.tar.bz2
builtin/apply: make gitdiff_*() 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", gitdiff_*() functions should return -1 instead of calling die(). A previous patch made it possible for gitdiff_*() functions to return -1 in case of error. Let's take advantage of that to make gitdiff_verify_name() return -1 on error, and to have gitdiff_oldname() and gitdiff_newname() directly return what gitdiff_verify_name() returns. Helped-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.h')
0 files changed, 0 insertions, 0 deletions