summaryrefslogtreecommitdiff
path: root/t/t4034-diff-words.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2009-10-29 11:45:03 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-10-30 09:42:56 -0700
commita4ca1465ec8afee798bf8f11d727179ca3da64a9 (patch)
treebb17119f78d5649eaeafaf07a454064c8cff4c63 /t/t4034-diff-words.sh
parentt4034-diff-words: add a test for word diff without context (diff)
downloadtgif-a4ca1465ec8afee798bf8f11d727179ca3da64a9.tar.xz
diff --color-words -U0: fix the location of hunk headers
Colored word diff without context lines firstly printed all the hunk headers among each other and then printed the diff. This was due to the code relying on getting at least one context line at the end of each hunk, where the colored words would be flushed (it is done that way to be able to ignore rewrapped lines). Noticed by Markus Heidelberg. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034-diff-words.sh')
-rwxr-xr-xt/t4034-diff-words.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh
index 82240cf44d..21db6e95c4 100755
--- a/t/t4034-diff-words.sh
+++ b/t/t4034-diff-words.sh
@@ -77,7 +77,7 @@ cat > expect <<\EOF
<GREEN>aeff = aeff * ( aaa )<RESET>
EOF
-test_expect_failure 'word diff without context' '
+test_expect_success 'word diff without context' '
word_diff --color-words --unified=0