summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96d1a8e)
raw | patch | inline | side by side (parent: 96d1a8e)
author | Brandon Casey <casey@nrlssc.navy.mil> | |
Mon, 22 Sep 2008 23:19:05 +0000 (18:19 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 23 Sep 2008 02:59:23 +0000 (19:59 -0700) |
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018-diff-funcname.sh | patch | blob | history |
index 602d68f092926ac612f4fe3bca17951fcde3cea9..99fff973eb2479d7ec599b8fd298d4a970176244 100755 (executable)
--- a/t/t4018-diff-funcname.sh
+++ b/t/t4018-diff-funcname.sh
sed 's/beer\\/beer,\\/' < Beer.java > Beer-correct.java
+builtin_patterns="bibtex java pascal ruby tex"
+for p in $builtin_patterns
+do
+ test_expect_success "builtin $p pattern compiles" '
+ echo "*.java diff=$p" > .gitattributes &&
+ ! ( git diff --no-index Beer.java Beer-correct.java 2>&1 |
+ grep "fatal" > /dev/null )
+ '
+done
+
test_expect_success 'default behaviour' '
+ rm -f .gitattributes &&
git diff --no-index Beer.java Beer-correct.java |
grep "^@@.*@@ public class Beer"
'