check-ignore: there are only two possible line terminations
commitdca90031fb777b80fab5084d48cba2e163e2596d
authorJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2016 21:31:17 +0000 (14 13:31 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2016 18:12:58 +0000 (15 10:12 -0800)
tree72f876e2673a720413a6f36e261fc090f3cd3344
parentf418afa98afb15afb8f93fe1ab11d5b83266d17d
check-ignore: there are only two possible line terminations

The program by default reads LF terminated lines, with an option to
use NUL terminated records.  Instead of pretending that there can be
other useful values for line_termination, use a boolean variable,
nul_term_line, to tell if NUL terminated records are used, and
switch between strbuf_getline_{lf,nul} based on it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/check-ignore.c