diff options
author | Stefan Beller <sbeller@google.com> | 2018-08-13 18:41:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-14 14:03:05 -0700 |
commit | 444106791ee2c4c4575db439ef74d5db5ede6a27 (patch) | |
tree | d15943862853b24f02475ff7ec69743797b003dc /daemon.c | |
parent | diff.c: omit check for line prefix in emit_line_0 (diff) | |
download | tgif-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 'daemon.c')
0 files changed, 0 insertions, 0 deletions