diff options
| author | Stefan Beller <sbeller@google.com> | 2018-08-13 18:41:20 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-08-14 14:03:05 -0700 |
| commit | 29ef759d7ca039590240890a604be8308b30a069 (patch) | |
| tree | 0451b2733583f158fd37251ed1e514752055d55d /commit.c | |
| parent | diff.c: add set_sign to emit_line_0 (diff) | |
| download | git-29ef759d7ca039590240890a604be8308b30a069.tar.gz git-29ef759d7ca039590240890a604be8308b30a069.zip | |
diff: use emit_line_0 once per line
All lines that use emit_line_0 multiple times per line, are combined
into a single call to emit_line_0, making use of the 'set' argument.
We gain a little efficiency here, as we can omit emission of color and
accompanying reset if 'len == 0'.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
