summaryrefslogtreecommitdiff
path: root/builtin/column.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-08-08 23:03:13 +0200
committerJunio C Hamano <gitster@pobox.com>2016-08-11 12:41:47 -0700
commit70af7662d47ac9f450c248720a379a8db817163b (patch)
tree2d0992558385f0a40cde5d4d877dcc0b4b50f4b8 /builtin/column.c
parent9724e6ff48506323ab897e2d9f8d27febd4d9bb0 (diff)
downloadgit-70af7662d47ac9f450c248720a379a8db817163b.tar.gz
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/column.c')
0 files changed, 0 insertions, 0 deletions