summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorLibravatar Stefan Beller <sbeller@google.com>2018-08-13 18:41:20 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-14 14:03:05 -0700
commit29ef759d7ca039590240890a604be8308b30a069 (patch)
tree0451b2733583f158fd37251ed1e514752055d55d /pretty.c
parentdiff.c: add set_sign to emit_line_0 (diff)
downloadtgif-29ef759d7ca039590240890a604be8308b30a069.tar.xz
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 'pretty.c')
0 files changed, 0 insertions, 0 deletions