summaryrefslogtreecommitdiff
path: root/t/t3206-range-diff.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-08-14 01:41:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-14 21:03:05 (GMT)
commit29ef759d7ca039590240890a604be8308b30a069 (patch)
tree0451b2733583f158fd37251ed1e514752055d55d /t/t3206-range-diff.sh
parent017ac45e87074a51e7bf926b8f87152a1af9a441 (diff)
downloadgit-29ef759d7ca039590240890a604be8308b30a069.zip
git-29ef759d7ca039590240890a604be8308b30a069.tar.gz
git-29ef759d7ca039590240890a604be8308b30a069.tar.bz2
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 't/t3206-range-diff.sh')
-rwxr-xr-xt/t3206-range-diff.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3206-range-diff.sh b/t/t3206-range-diff.sh
index 31f6458..7dc7c80 100755
--- a/t/t3206-range-diff.sh
+++ b/t/t3206-range-diff.sh
@@ -151,7 +151,7 @@ test_expect_success 'dual-coloring' '
: s/4/A/<RESET>
: <RESET>
: <REVERSE><GREEN>+<RESET><BOLD> Also a silly comment here!<RESET>
- : <REVERSE><GREEN>+<RESET><BOLD><RESET>
+ : <REVERSE><GREEN>+<RESET>
: diff --git a/file b/file<RESET>
: <RED> --- a/file<RESET>
: <GREEN> +++ b/file<RESET>