diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-08-08 23:03:13 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-11 12:41:47 -0700 |
commit | 70af7662d47ac9f450c248720a379a8db817163b (patch) | |
tree | 2d0992558385f0a40cde5d4d877dcc0b4b50f4b8 /builtin/mailsplit.c | |
parent | builtin/apply: make parse_traditional_patch() return -1 on error (diff) | |
download | tgif-70af7662d47ac9f450c248720a379a8db817163b.tar.xz |
builtin/apply: make gitdiff_*() return 1 at end of header
The gitdiff_*() functions that are called as p->fn() in parse_git_header()
should return 1 instead of -1 in case of end of header or unrecognized
input, as these are not real errors. It just instructs the parser to break
out.
This makes it possible for gitdiff_*() functions to return -1 in case of a
real error. This will be done in a following patch.
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 'builtin/mailsplit.c')
0 files changed, 0 insertions, 0 deletions