]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4013-diff-various.sh
2.36 gitk/diff-tree --stdin regression fix
[thirdparty/git.git] / t / t4013-diff-various.sh
index 750aee17ea9650530a5e716020b4ae05ad6c0ef9..628b01f355a743f0d24dcc33923e72b3fa0062f9 100755 (executable)
@@ -542,6 +542,20 @@ test_expect_success 'diff-tree --stdin with log formatting' '
        test_cmp expect actual
 '
 
+test_expect_success 'diff-tree --stdin with pathspec' '
+       cat >expect <<-EOF &&
+       Third
+
+       dir/sub
+       Second
+
+       dir/sub
+       EOF
+       git rev-list master^ |
+       git diff-tree -r --stdin --name-only --format=%s dir >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success 'diff -I<regex>: setup' '
        git checkout master &&
        test_seq 50 >file0 &&