aboutsummaryrefslogtreecommitdiff
path: root/t/t2101-update-index-reupdate.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-05 23:09:05 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-05 23:11:29 -0700
commit22293b9c41778bb60f3b07355e1b8e421a503702 (patch)
treebe961d45c75997188212d0f383b0859fef5f2442 /t/t2101-update-index-reupdate.sh
parent83e77a25dc194933c0fb7908ab6d9fb84a5045e2 (diff)
downloadgit-22293b9c41778bb60f3b07355e1b8e421a503702.tar.gz
git-22293b9c41778bb60f3b07355e1b8e421a503702.tar.xz
update-index --again: take optional pathspecs
When pathspecs are given, update-index --again further limits the set of paths to be updated to those that match them. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t2101-update-index-reupdate.sh')
-rwxr-xr-xt/t2101-update-index-reupdate.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/t2101-update-index-reupdate.sh b/t/t2101-update-index-reupdate.sh
index 5c505c6ac..77aed8d80 100755
--- a/t/t2101-update-index-reupdate.sh
+++ b/t/t2101-update-index-reupdate.sh
@@ -69,5 +69,14 @@ test_expect_success 'update-index --update from subdir' \
100644 0f1ae1422c2bf43f117d3dbd715c988a9ed2103f 0 file2
EOF'
-test_done
+test_expect_success 'update-index --update with pathspec' \
+ 'echo very happy >file2 &&
+ cat file2 >dir1/file3 &&
+ git-update-index --again dir1/ &&
+ git-ls-files -s >current &&
+ cmp current - <<\EOF
+100644 594fb5bb1759d90998e2bf2a38261ae8e243c760 0 dir1/file3
+100644 0f1ae1422c2bf43f117d3dbd715c988a9ed2103f 0 file2
+EOF'
+test_done