update-index: there are only two possible line terminations
commit7e07ed84186d4047b39a4e9047d41df0322c7338
authorJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2016 21:34:29 +0000 (14 13:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2016 18:12:58 +0000 (15 10:12 -0800)
treeb16614446a1edb44cbff84b88da732cbe3f78470
parentdca90031fb777b80fab5084d48cba2e163e2596d
update-index: 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/update-index.c