projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update-index --again: take optional pathspecs
[git.git]
/
t
/
t4010-diff-pathspec.sh
diff --git
a/t/t4010-diff-pathspec.sh
b/t/t4010-diff-pathspec.sh
index
8db329d
..
9e1544d
100755
(executable)
--- a/
t/t4010-diff-pathspec.sh
+++ b/
t/t4010-diff-pathspec.sh
@@
-28,7
+28,7
@@
cat >expected <<\EOF
EOF
test_expect_success \
'limit to path should show nothing' \
EOF
test_expect_success \
'limit to path should show nothing' \
- 'git-diff-index --cached $tree path >current &&
+ 'git-diff-index --cached $tree
--
path >current &&
compare_diff_raw current expected'
cat >expected <<\EOF
compare_diff_raw current expected'
cat >expected <<\EOF
@@
-36,7
+36,7
@@
cat >expected <<\EOF
EOF
test_expect_success \
'limit to path1 should show path1/file1' \
EOF
test_expect_success \
'limit to path1 should show path1/file1' \
- 'git-diff-index --cached $tree path1 >current &&
+ 'git-diff-index --cached $tree
--
path1 >current &&
compare_diff_raw current expected'
cat >expected <<\EOF
compare_diff_raw current expected'
cat >expected <<\EOF
@@
-44,7
+44,7
@@
cat >expected <<\EOF
EOF
test_expect_success \
'limit to path1/ should show path1/file1' \
EOF
test_expect_success \
'limit to path1/ should show path1/file1' \
- 'git-diff-index --cached $tree path1/ >current &&
+ 'git-diff-index --cached $tree
--
path1/ >current &&
compare_diff_raw current expected'
cat >expected <<\EOF
compare_diff_raw current expected'
cat >expected <<\EOF
@@
-52,14
+52,14
@@
cat >expected <<\EOF
EOF
test_expect_success \
'limit to file0 should show file0' \
EOF
test_expect_success \
'limit to file0 should show file0' \
- 'git-diff-index --cached $tree file0 >current &&
+ 'git-diff-index --cached $tree
--
file0 >current &&
compare_diff_raw current expected'
cat >expected <<\EOF
EOF
test_expect_success \
'limit to file0/ should emit nothing.' \
compare_diff_raw current expected'
cat >expected <<\EOF
EOF
test_expect_success \
'limit to file0/ should emit nothing.' \
- 'git-diff-index --cached $tree file0/ >current &&
+ 'git-diff-index --cached $tree
--
file0/ >current &&
compare_diff_raw current expected'
test_done
compare_diff_raw current expected'
test_done