@@ -55,7 +55,7 @@ test_expect_success 'setup' '
5555'
5656
5757test_expect_success ' untracked cache is empty' '
58- test-dump-untracked-cache >../actual &&
58+ test-tool dump-untracked-cache >../actual &&
5959 cat >../expect-empty <<EOF &&
6060info/exclude 0000000000000000000000000000000000000000
6161core.excludesfile 0000000000000000000000000000000000000000
106106'
107107
108108test_expect_success ' untracked cache after first status' '
109- test-dump-untracked-cache >../actual &&
109+ test-tool dump-untracked-cache >../actual &&
110110 test_cmp ../dump.expect ../actual
111111'
112112
126126'
127127
128128test_expect_success ' untracked cache after second status' '
129- test-dump-untracked-cache >../actual &&
129+ test-tool dump-untracked-cache >../actual &&
130130 test_cmp ../dump.expect ../actual
131131'
132132
157157'
158158
159159test_expect_success ' verify untracked cache dump' '
160- test-dump-untracked-cache >../actual &&
160+ test-tool dump-untracked-cache >../actual &&
161161 cat >../expect <<EOF &&
162162info/exclude $EMPTY_BLOB
163163core.excludesfile 0000000000000000000000000000000000000000
204204'
205205
206206test_expect_success ' verify untracked cache dump' '
207- test-dump-untracked-cache >../actual &&
207+ test-tool dump-untracked-cache >../actual &&
208208 cat >../expect <<EOF &&
209209info/exclude $EMPTY_BLOB
210210core.excludesfile 0000000000000000000000000000000000000000
248248'
249249
250250test_expect_success ' verify untracked cache dump' '
251- test-dump-untracked-cache >../actual &&
251+ test-tool dump-untracked-cache >../actual &&
252252 cat >../expect <<EOF &&
253253info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
254254core.excludesfile 0000000000000000000000000000000000000000
267267
268268test_expect_success ' move two from tracked to untracked' '
269269 git rm --cached two &&
270- test-dump-untracked-cache >../actual &&
270+ test-tool dump-untracked-cache >../actual &&
271271 cat >../expect <<EOF &&
272272info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
273273core.excludesfile 0000000000000000000000000000000000000000
304304'
305305
306306test_expect_success ' verify untracked cache dump' '
307- test-dump-untracked-cache >../actual &&
307+ test-tool dump-untracked-cache >../actual &&
308308 cat >../expect <<EOF &&
309309info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
310310core.excludesfile 0000000000000000000000000000000000000000
324324
325325test_expect_success ' move two from untracked to tracked' '
326326 git add two &&
327- test-dump-untracked-cache >../actual &&
327+ test-tool dump-untracked-cache >../actual &&
328328 cat >../expect <<EOF &&
329329info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
330330core.excludesfile 0000000000000000000000000000000000000000
361361'
362362
363363test_expect_success ' verify untracked cache dump' '
364- test-dump-untracked-cache >../actual &&
364+ test-tool dump-untracked-cache >../actual &&
365365 cat >../expect <<EOF &&
366366info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
367367core.excludesfile 0000000000000000000000000000000000000000
405405'
406406
407407test_expect_success ' untracked cache correct after commit' '
408- test-dump-untracked-cache >../actual &&
408+ test-tool dump-untracked-cache >../actual &&
409409 cat >../expect <<EOF &&
410410info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
411411core.excludesfile 0000000000000000000000000000000000000000
464464'
465465
466466test_expect_success ' untracked cache correct after status' '
467- test-dump-untracked-cache >../actual &&
467+ test-tool dump-untracked-cache >../actual &&
468468 cat >../expect <<EOF &&
469469info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
470470core.excludesfile 0000000000000000000000000000000000000000
532532'
533533
534534test_expect_success ' verify untracked cache dump (sparse/subdirs)' '
535- test-dump-untracked-cache >../actual &&
535+ test-tool dump-untracked-cache >../actual &&
536536 cat >../expect-from-test-dump <<EOF &&
537537info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
538538core.excludesfile 0000000000000000000000000000000000000000
@@ -598,66 +598,66 @@ EOF
598598
599599test_expect_success ' --no-untracked-cache removes the cache' '
600600 git update-index --no-untracked-cache &&
601- test-dump-untracked-cache >../actual &&
601+ test-tool dump-untracked-cache >../actual &&
602602 echo "no untracked cache" >../expect-no-uc &&
603603 test_cmp ../expect-no-uc ../actual
604604'
605605
606606test_expect_success ' git status does not change anything' '
607607 git status &&
608- test-dump-untracked-cache >../actual &&
608+ test-tool dump-untracked-cache >../actual &&
609609 test_cmp ../expect-no-uc ../actual
610610'
611611
612612test_expect_success ' setting core.untrackedCache to true and using git status creates the cache' '
613613 git config core.untrackedCache true &&
614- test-dump-untracked-cache >../actual &&
614+ test-tool dump-untracked-cache >../actual &&
615615 test_cmp ../expect-no-uc ../actual &&
616616 git status &&
617- test-dump-untracked-cache >../actual &&
617+ test-tool dump-untracked-cache >../actual &&
618618 test_cmp ../expect-from-test-dump ../actual
619619'
620620
621621test_expect_success ' using --no-untracked-cache does not fail when core.untrackedCache is true' '
622622 git update-index --no-untracked-cache &&
623- test-dump-untracked-cache >../actual &&
623+ test-tool dump-untracked-cache >../actual &&
624624 test_cmp ../expect-no-uc ../actual &&
625625 git update-index --untracked-cache &&
626- test-dump-untracked-cache >../actual &&
626+ test-tool dump-untracked-cache >../actual &&
627627 test_cmp ../expect-empty ../actual
628628'
629629
630630test_expect_success ' setting core.untrackedCache to false and using git status removes the cache' '
631631 git config core.untrackedCache false &&
632- test-dump-untracked-cache >../actual &&
632+ test-tool dump-untracked-cache >../actual &&
633633 test_cmp ../expect-empty ../actual &&
634634 git status &&
635- test-dump-untracked-cache >../actual &&
635+ test-tool dump-untracked-cache >../actual &&
636636 test_cmp ../expect-no-uc ../actual
637637'
638638
639639test_expect_success ' using --untracked-cache does not fail when core.untrackedCache is false' '
640640 git update-index --untracked-cache &&
641- test-dump-untracked-cache >../actual &&
641+ test-tool dump-untracked-cache >../actual &&
642642 test_cmp ../expect-empty ../actual
643643'
644644
645645test_expect_success ' setting core.untrackedCache to keep' '
646646 git config core.untrackedCache keep &&
647647 git update-index --untracked-cache &&
648- test-dump-untracked-cache >../actual &&
648+ test-tool dump-untracked-cache >../actual &&
649649 test_cmp ../expect-empty ../actual &&
650650 git status &&
651- test-dump-untracked-cache >../actual &&
651+ test-tool dump-untracked-cache >../actual &&
652652 test_cmp ../expect-from-test-dump ../actual &&
653653 git update-index --no-untracked-cache &&
654- test-dump-untracked-cache >../actual &&
654+ test-tool dump-untracked-cache >../actual &&
655655 test_cmp ../expect-no-uc ../actual &&
656656 git update-index --force-untracked-cache &&
657- test-dump-untracked-cache >../actual &&
657+ test-tool dump-untracked-cache >../actual &&
658658 test_cmp ../expect-empty ../actual &&
659659 git status &&
660- test-dump-untracked-cache >../actual &&
660+ test-tool dump-untracked-cache >../actual &&
661661 test_cmp ../expect-from-test-dump ../actual
662662'
663663
@@ -671,23 +671,23 @@ test_expect_success 'test ident field is working' '
671671
672672test_expect_success ' untracked cache survives a checkout' '
673673 git commit --allow-empty -m empty &&
674- test-dump-untracked-cache >../before &&
674+ test-tool dump-untracked-cache >../before &&
675675 test_when_finished "git checkout master" &&
676676 git checkout -b other_branch &&
677- test-dump-untracked-cache >../after &&
677+ test-tool dump-untracked-cache >../after &&
678678 test_cmp ../before ../after &&
679679 test_commit test &&
680- test-dump-untracked-cache >../before &&
680+ test-tool dump-untracked-cache >../before &&
681681 git checkout master &&
682- test-dump-untracked-cache >../after &&
682+ test-tool dump-untracked-cache >../after &&
683683 test_cmp ../before ../after
684684'
685685
686686test_expect_success ' untracked cache survives a commit' '
687- test-dump-untracked-cache >../before &&
687+ test-tool dump-untracked-cache >../before &&
688688 git add done/two &&
689689 git commit -m commit &&
690- test-dump-untracked-cache >../after &&
690+ test-tool dump-untracked-cache >../after &&
691691 test_cmp ../before ../after
692692'
693693
@@ -751,7 +751,7 @@ test_expect_success '"status" after file replacement should be clean with UC=tru
751751 git checkout master &&
752752 avoid_racy &&
753753 status_is_clean &&
754- test-dump-untracked-cache >../actual &&
754+ test-tool dump-untracked-cache >../actual &&
755755 grep -F "recurse valid" ../actual >../actual.grep &&
756756 cat >../expect.grep <<EOF &&
757757/ 0000000000000000000000000000000000000000 recurse valid
0 commit comments