refactor handling of "other" files in ls-files and status
[gitweb.git] / t / t4018-diff-funcname.sh
index 72076eca80e4fcf018841ffce4346f17bbb47055..398bf4b5d8e3d85562563059eaeb7bc8b8e4ce59 100755 (executable)
@@ -69,6 +69,12 @@ test_expect_success 'last regexp must not be negated' '
        grep "fatal: Last expression must not be negated:"
 '
 
+test_expect_success 'pattern which matches to end of line' '
+       git config diff.java.funcname "Beer$" &&
+       git diff --no-index Beer.java Beer-correct.java |
+       grep "^@@.*@@ Beer"
+'
+
 test_expect_success 'alternation in pattern' '
        git config diff.java.xfuncname "^[      ]*((public|static).*)$" &&
        git diff --no-index Beer.java Beer-correct.java |