Fix diff -B/--dirstat miscounting of newly added contents
[gitweb.git] / t / t4014-format-patch.sh
index cab6ce2e97b2439730915c12b5b141e634e759c5..74e5b63bbf7895f383323917c614679afd2d29b1 100755 (executable)
@@ -536,4 +536,9 @@ test_expect_success 'format-patch --signoff' '
        grep "^Signed-off-by: $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>"
 '
 
+test_expect_success 'format-patch -- <path>' '
+       git format-patch master..side -- file 2>error &&
+       ! grep "Use .--" error
+'
+
 test_done