diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-09-22 20:01:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-22 20:01:33 -0700 |
commit | 4be4680cbb37cd803fa018c736879d936cd45671 (patch) | |
tree | 5d5019f257598b719c0b94907b9722a97a92cd12 /t | |
parent | 92bb978541af02ac624d1b9aeec296691cc15734 (diff) | |
parent | e3bf5e43fd9db9391ebc876ef118dbb431853d69 (diff) | |
download | git-4be4680cbb37cd803fa018c736879d936cd45671.tar.gz git-4be4680cbb37cd803fa018c736879d936cd45671.tar.xz |
Merge branch 'bc/maint-diff-hunk-header-fix' into bc/master-diff-hunk-header-fix
* bc/maint-diff-hunk-header-fix:
t4018-diff-funcname: test syntax of builtin xfuncname patterns
Diffstat (limited to 't')
-rwxr-xr-x | t/t4018-diff-funcname.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t4018-diff-funcname.sh b/t/t4018-diff-funcname.sh index 602d68f09..99fff973e 100755 --- a/t/t4018-diff-funcname.sh +++ b/t/t4018-diff-funcname.sh @@ -32,7 +32,18 @@ EOF 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" ' |