X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft2004-checkout-cache-temp.sh;h=39133b8c7a4b56cb7273cec607ea89081a426eff;hb=20bd35c1103930e690362d0342cdc54c5a97e4b1;hp=c100959cad3f017ec282c10bbc31bdc4982d5fbc;hpb=e94b4d2f2a3a9b2aaaac15c33d5d31f76531ecbf;p=git.git diff --git a/t/t2004-checkout-cache-temp.sh b/t/t2004-checkout-cache-temp.sh index c100959ca..39133b8c7 100755 --- a/t/t2004-checkout-cache-temp.sh +++ b/t/t2004-checkout-cache-temp.sh @@ -3,9 +3,9 @@ # Copyright (c) 2006 Shawn Pearce # -test_description='git-checkout-index --temp test. +test_description='git checkout-index --temp test. -With --temp flag, git-checkout-index writes to temporary merge files +With --temp flag, git checkout-index writes to temporary merge files rather than the tracked path.' . ./test-lib.sh @@ -18,28 +18,28 @@ echo tree1path1 >path1 && echo tree1path3 >path3 && echo tree1path4 >path4 && echo tree1asubdir/path5 >asubdir/path5 && -git-update-index --add path0 path1 path3 path4 asubdir/path5 && -t1=$(git-write-tree) && +git update-index --add path0 path1 path3 path4 asubdir/path5 && +t1=$(git write-tree) && rm -f path* .merge_* out .git/index && echo tree2path0 >path0 && echo tree2path1 >path1 && echo tree2path2 >path2 && echo tree2path4 >path4 && -git-update-index --add path0 path1 path2 path4 && -t2=$(git-write-tree) && +git update-index --add path0 path1 path2 path4 && +t2=$(git write-tree) && rm -f path* .merge_* out .git/index && echo tree2path0 >path0 && echo tree3path1 >path1 && echo tree3path2 >path2 && echo tree3path3 >path3 && -git-update-index --add path0 path1 path2 path3 && -t3=$(git-write-tree)' +git update-index --add path0 path1 path2 path3 && +t3=$(git write-tree)' test_expect_success \ 'checkout one stage 0 to temporary file' ' rm -f path* .merge_* out .git/index && -git-read-tree $t1 && -git-checkout-index --temp -- path1 >out && +git read-tree $t1 && +git checkout-index --temp -- path1 >out && test $(wc -l out && +git read-tree $t1 && +git checkout-index -a --temp >out && test $(wc -l out && +git checkout-index --stage=2 --temp -- path1 >out && test $(wc -l out && +git checkout-index --all --stage=2 --temp >out && test $(wc -l out && +git checkout-index --stage=all --temp -- path0 >out && test $(wc -l out && +git checkout-index --stage=all --temp -- path1 >out && test $(wc -l out && +git checkout-index --stage=all --temp -- path2 >out && test $(wc -l out && +git checkout-index -a --stage=all --temp >out && test $(wc -l out && + git checkout-index -a --stage=all >out && test $(wc -l out && +git read-tree $t4 && +git checkout-index --temp -a >out && test $(wc -l