summaryrefslogtreecommitdiff
path: root/sha1dc_git.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2018-08-13 18:41:22 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-14 14:03:05 -0700
commit444106791ee2c4c4575db439ef74d5db5ede6a27 (patch)
treed15943862853b24f02475ff7ec69743797b003dc /sha1dc_git.c
parentdiff.c: omit check for line prefix in emit_line_0 (diff)
downloadtgif-444106791ee2c4c4575db439ef74d5db5ede6a27.tar.xz
diff.c: rewrite emit_line_0 more understandably
Rewrite emit_line_0 to have fewer (nested) conditions. The change in 'emit_line' makes sure that 'first' is never user data, but always under our control, a sign or special character in the beginning of the line (or 0, in which case we ignore it). So from now on, let's pass only a diff marker or 0 as the 'first' character of the line. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1dc_git.c')
0 files changed, 0 insertions, 0 deletions