mirror of
https://github.com/git/git.git
synced 2024-10-29 21:37:53 +01:00
diff.c: simplify caller of emit_line_0
Due to the previous condition we know "set_sign != NULL" at that point. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
c5e64caaa9
commit
84120cca09
1 changed files with 1 additions and 2 deletions
3
diff.c
3
diff.c
|
@ -1202,8 +1202,7 @@ static void emit_line_ws_markup(struct diff_options *o,
|
|||
emit_line_0(o, set, 0, reset, sign, line, len);
|
||||
else if (!ws) {
|
||||
/* Emit just the prefix, then the rest. */
|
||||
emit_line_0(o, set_sign ? set_sign : set, !!set_sign, reset,
|
||||
sign, "", 0);
|
||||
emit_line_0(o, set_sign, !!set_sign, reset, sign, "", 0);
|
||||
emit_line_0(o, set, 0, reset, 0, line, len);
|
||||
} else if (blank_at_eof)
|
||||
/* Blank line at EOF - paint '+' as well */
|
||||
|
|
Loading…
Reference in a new issue