summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a6b51f1)
raw | patch | inline | side by side (parent: a6b51f1)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 2 Dec 2005 06:49:52 +0000 (22:49 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 2 Dec 2005 06:49:52 +0000 (22:49 -0800) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
t/t3100-ls-tree-restrict.sh | patch | blob | history |
index ae086755ea7b727b29811c8ce8cd32a7e2bd6e0f..2ec06d3d3979aad18b4594329e93407d33f8cae5 100755 (executable)
EOF
test_output'
+test_expect_success \
+ 'ls-tree recursive with -t' \
+ 'git-ls-tree -r -t $tree >current &&
+ cat >expected <<\EOF &&
+100644 blob X path0
+120000 blob X path1
+040000 tree X path2
+040000 tree X path2/baz
+100644 blob X path2/baz/b
+120000 blob X path2/bazbo
+100644 blob X path2/foo
+EOF
+ test_output'
+
+test_expect_success \
+ 'ls-tree recursive with -d' \
+ 'git-ls-tree -r -d $tree >current &&
+ cat >expected <<\EOF &&
+040000 tree X path2
+040000 tree X path2/baz
+EOF
+ test_output'
+
test_expect_success \
'ls-tree filtered with path' \
'git-ls-tree $tree path >current &&
EOF
test_output'
+test_expect_success \
+ 'ls-tree filtered with path2/bak' \
+ 'git-ls-tree $tree path2/bak >current &&
+ cat >expected <<\EOF &&
+EOF
+ test_output'
+
+test_expect_success \
+ 'ls-tree -t filtered with path2/bak' \
+ 'git-ls-tree -t $tree path2/bak >current &&
+ cat >expected <<\EOF &&
+040000 tree X path2
+EOF
+ test_output'
+
test_done