diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-15 16:41:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-15 16:41:29 -0800 |
commit | 002a9ec005cd3d4273e3c6b7dbe7a2fb9e70c1bc (patch) | |
tree | 4cc388911d3a2e414ea48e6b52e489efa792c9ac /t | |
parent | 934c042c9cf09a14762b3fa094f1ba15ec721161 (diff) | |
parent | 76fd28283f7eeea246a06994edd43ab60e59d853 (diff) | |
download | git-002a9ec005cd3d4273e3c6b7dbe7a2fb9e70c1bc.tar.gz git-002a9ec005cd3d4273e3c6b7dbe7a2fb9e70c1bc.tar.xz |
Merge branch 'js/maint-diff-color-words'
* js/maint-diff-color-words:
diff --color-words: bit of clean-up
diff --color-words -U0: fix the location of hunk headers
t4034-diff-words: add a test for word diff without context
Conflicts:
diff.c
Diffstat (limited to 't')
-rwxr-xr-x | t/t4034-diff-words.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/t4034-diff-words.sh b/t/t4034-diff-words.sh index 4508effca..21db6e95c 100755 --- a/t/t4034-diff-words.sh +++ b/t/t4034-diff-words.sh @@ -68,6 +68,26 @@ cat > expect <<\EOF <WHITE>index 330b04f..5ed8eff 100644<RESET> <WHITE>--- a/pre<RESET> <WHITE>+++ b/post<RESET> +<BROWN>@@ -1 +1 @@<RESET> +<RED>h(4)<RESET><GREEN>h(4),hh[44]<RESET> +<BROWN>@@ -3,0 +4,4 @@ a = b + c<RESET> + +<GREEN>aa = a<RESET> + +<GREEN>aeff = aeff * ( aaa )<RESET> +EOF + +test_expect_success 'word diff without context' ' + + word_diff --color-words --unified=0 + +' + +cat > expect <<\EOF +<WHITE>diff --git a/pre b/post<RESET> +<WHITE>index 330b04f..5ed8eff 100644<RESET> +<WHITE>--- a/pre<RESET> +<WHITE>+++ b/post<RESET> <BROWN>@@ -1,3 +1,7 @@<RESET> h(4),<GREEN>hh<RESET>[44] <RESET> |