@@ -55,7 +55,7 @@ test_expect_success 'setup' '
55
55
'
56
56
57
57
test_expect_success ' untracked cache is empty' '
58
- test-dump-untracked-cache >../actual &&
58
+ test-tool dump-untracked-cache >../actual &&
59
59
cat >../expect-empty <<EOF &&
60
60
info/exclude 0000000000000000000000000000000000000000
61
61
core.excludesfile 0000000000000000000000000000000000000000
106
106
'
107
107
108
108
test_expect_success ' untracked cache after first status' '
109
- test-dump-untracked-cache >../actual &&
109
+ test-tool dump-untracked-cache >../actual &&
110
110
test_cmp ../dump.expect ../actual
111
111
'
112
112
126
126
'
127
127
128
128
test_expect_success ' untracked cache after second status' '
129
- test-dump-untracked-cache >../actual &&
129
+ test-tool dump-untracked-cache >../actual &&
130
130
test_cmp ../dump.expect ../actual
131
131
'
132
132
157
157
'
158
158
159
159
test_expect_success ' verify untracked cache dump' '
160
- test-dump-untracked-cache >../actual &&
160
+ test-tool dump-untracked-cache >../actual &&
161
161
cat >../expect <<EOF &&
162
162
info/exclude $EMPTY_BLOB
163
163
core.excludesfile 0000000000000000000000000000000000000000
204
204
'
205
205
206
206
test_expect_success ' verify untracked cache dump' '
207
- test-dump-untracked-cache >../actual &&
207
+ test-tool dump-untracked-cache >../actual &&
208
208
cat >../expect <<EOF &&
209
209
info/exclude $EMPTY_BLOB
210
210
core.excludesfile 0000000000000000000000000000000000000000
248
248
'
249
249
250
250
test_expect_success ' verify untracked cache dump' '
251
- test-dump-untracked-cache >../actual &&
251
+ test-tool dump-untracked-cache >../actual &&
252
252
cat >../expect <<EOF &&
253
253
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
254
254
core.excludesfile 0000000000000000000000000000000000000000
267
267
268
268
test_expect_success ' move two from tracked to untracked' '
269
269
git rm --cached two &&
270
- test-dump-untracked-cache >../actual &&
270
+ test-tool dump-untracked-cache >../actual &&
271
271
cat >../expect <<EOF &&
272
272
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
273
273
core.excludesfile 0000000000000000000000000000000000000000
304
304
'
305
305
306
306
test_expect_success ' verify untracked cache dump' '
307
- test-dump-untracked-cache >../actual &&
307
+ test-tool dump-untracked-cache >../actual &&
308
308
cat >../expect <<EOF &&
309
309
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
310
310
core.excludesfile 0000000000000000000000000000000000000000
324
324
325
325
test_expect_success ' move two from untracked to tracked' '
326
326
git add two &&
327
- test-dump-untracked-cache >../actual &&
327
+ test-tool dump-untracked-cache >../actual &&
328
328
cat >../expect <<EOF &&
329
329
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
330
330
core.excludesfile 0000000000000000000000000000000000000000
361
361
'
362
362
363
363
test_expect_success ' verify untracked cache dump' '
364
- test-dump-untracked-cache >../actual &&
364
+ test-tool dump-untracked-cache >../actual &&
365
365
cat >../expect <<EOF &&
366
366
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
367
367
core.excludesfile 0000000000000000000000000000000000000000
405
405
'
406
406
407
407
test_expect_success ' untracked cache correct after commit' '
408
- test-dump-untracked-cache >../actual &&
408
+ test-tool dump-untracked-cache >../actual &&
409
409
cat >../expect <<EOF &&
410
410
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
411
411
core.excludesfile 0000000000000000000000000000000000000000
464
464
'
465
465
466
466
test_expect_success ' untracked cache correct after status' '
467
- test-dump-untracked-cache >../actual &&
467
+ test-tool dump-untracked-cache >../actual &&
468
468
cat >../expect <<EOF &&
469
469
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
470
470
core.excludesfile 0000000000000000000000000000000000000000
532
532
'
533
533
534
534
test_expect_success ' verify untracked cache dump (sparse/subdirs)' '
535
- test-dump-untracked-cache >../actual &&
535
+ test-tool dump-untracked-cache >../actual &&
536
536
cat >../expect-from-test-dump <<EOF &&
537
537
info/exclude 13263c0978fb9fad16b2d580fb800b6d811c3ff0
538
538
core.excludesfile 0000000000000000000000000000000000000000
@@ -598,66 +598,66 @@ EOF
598
598
599
599
test_expect_success ' --no-untracked-cache removes the cache' '
600
600
git update-index --no-untracked-cache &&
601
- test-dump-untracked-cache >../actual &&
601
+ test-tool dump-untracked-cache >../actual &&
602
602
echo "no untracked cache" >../expect-no-uc &&
603
603
test_cmp ../expect-no-uc ../actual
604
604
'
605
605
606
606
test_expect_success ' git status does not change anything' '
607
607
git status &&
608
- test-dump-untracked-cache >../actual &&
608
+ test-tool dump-untracked-cache >../actual &&
609
609
test_cmp ../expect-no-uc ../actual
610
610
'
611
611
612
612
test_expect_success ' setting core.untrackedCache to true and using git status creates the cache' '
613
613
git config core.untrackedCache true &&
614
- test-dump-untracked-cache >../actual &&
614
+ test-tool dump-untracked-cache >../actual &&
615
615
test_cmp ../expect-no-uc ../actual &&
616
616
git status &&
617
- test-dump-untracked-cache >../actual &&
617
+ test-tool dump-untracked-cache >../actual &&
618
618
test_cmp ../expect-from-test-dump ../actual
619
619
'
620
620
621
621
test_expect_success ' using --no-untracked-cache does not fail when core.untrackedCache is true' '
622
622
git update-index --no-untracked-cache &&
623
- test-dump-untracked-cache >../actual &&
623
+ test-tool dump-untracked-cache >../actual &&
624
624
test_cmp ../expect-no-uc ../actual &&
625
625
git update-index --untracked-cache &&
626
- test-dump-untracked-cache >../actual &&
626
+ test-tool dump-untracked-cache >../actual &&
627
627
test_cmp ../expect-empty ../actual
628
628
'
629
629
630
630
test_expect_success ' setting core.untrackedCache to false and using git status removes the cache' '
631
631
git config core.untrackedCache false &&
632
- test-dump-untracked-cache >../actual &&
632
+ test-tool dump-untracked-cache >../actual &&
633
633
test_cmp ../expect-empty ../actual &&
634
634
git status &&
635
- test-dump-untracked-cache >../actual &&
635
+ test-tool dump-untracked-cache >../actual &&
636
636
test_cmp ../expect-no-uc ../actual
637
637
'
638
638
639
639
test_expect_success ' using --untracked-cache does not fail when core.untrackedCache is false' '
640
640
git update-index --untracked-cache &&
641
- test-dump-untracked-cache >../actual &&
641
+ test-tool dump-untracked-cache >../actual &&
642
642
test_cmp ../expect-empty ../actual
643
643
'
644
644
645
645
test_expect_success ' setting core.untrackedCache to keep' '
646
646
git config core.untrackedCache keep &&
647
647
git update-index --untracked-cache &&
648
- test-dump-untracked-cache >../actual &&
648
+ test-tool dump-untracked-cache >../actual &&
649
649
test_cmp ../expect-empty ../actual &&
650
650
git status &&
651
- test-dump-untracked-cache >../actual &&
651
+ test-tool dump-untracked-cache >../actual &&
652
652
test_cmp ../expect-from-test-dump ../actual &&
653
653
git update-index --no-untracked-cache &&
654
- test-dump-untracked-cache >../actual &&
654
+ test-tool dump-untracked-cache >../actual &&
655
655
test_cmp ../expect-no-uc ../actual &&
656
656
git update-index --force-untracked-cache &&
657
- test-dump-untracked-cache >../actual &&
657
+ test-tool dump-untracked-cache >../actual &&
658
658
test_cmp ../expect-empty ../actual &&
659
659
git status &&
660
- test-dump-untracked-cache >../actual &&
660
+ test-tool dump-untracked-cache >../actual &&
661
661
test_cmp ../expect-from-test-dump ../actual
662
662
'
663
663
@@ -671,23 +671,23 @@ test_expect_success 'test ident field is working' '
671
671
672
672
test_expect_success ' untracked cache survives a checkout' '
673
673
git commit --allow-empty -m empty &&
674
- test-dump-untracked-cache >../before &&
674
+ test-tool dump-untracked-cache >../before &&
675
675
test_when_finished "git checkout master" &&
676
676
git checkout -b other_branch &&
677
- test-dump-untracked-cache >../after &&
677
+ test-tool dump-untracked-cache >../after &&
678
678
test_cmp ../before ../after &&
679
679
test_commit test &&
680
- test-dump-untracked-cache >../before &&
680
+ test-tool dump-untracked-cache >../before &&
681
681
git checkout master &&
682
- test-dump-untracked-cache >../after &&
682
+ test-tool dump-untracked-cache >../after &&
683
683
test_cmp ../before ../after
684
684
'
685
685
686
686
test_expect_success ' untracked cache survives a commit' '
687
- test-dump-untracked-cache >../before &&
687
+ test-tool dump-untracked-cache >../before &&
688
688
git add done/two &&
689
689
git commit -m commit &&
690
- test-dump-untracked-cache >../after &&
690
+ test-tool dump-untracked-cache >../after &&
691
691
test_cmp ../before ../after
692
692
'
693
693
@@ -751,7 +751,7 @@ test_expect_success '"status" after file replacement should be clean with UC=tru
751
751
git checkout master &&
752
752
avoid_racy &&
753
753
status_is_clean &&
754
- test-dump-untracked-cache >../actual &&
754
+ test-tool dump-untracked-cache >../actual &&
755
755
grep -F "recurse valid" ../actual >../actual.grep &&
756
756
cat >../expect.grep <<EOF &&
757
757
/ 0000000000000000000000000000000000000000 recurse valid
0 commit comments