diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-08-08 21:03:13 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-11 19:41:47 (GMT) |
commit | 70af7662d47ac9f450c248720a379a8db817163b (patch) | |
tree | 2d0992558385f0a40cde5d4d877dcc0b4b50f4b8 /fmt-merge-msg.h | |
parent | 9724e6ff48506323ab897e2d9f8d27febd4d9bb0 (diff) | |
download | git-70af7662d47ac9f450c248720a379a8db817163b.zip git-70af7662d47ac9f450c248720a379a8db817163b.tar.gz git-70af7662d47ac9f450c248720a379a8db817163b.tar.bz2 |
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 'fmt-merge-msg.h')
0 files changed, 0 insertions, 0 deletions