@@ -66,6 +66,12 @@ strip_comments () {
66
66
rm " $1 " && mv " $1 " .tmp " $1 "
67
67
}
68
68
69
+ cat > .gitignore << \EOF
70
+ .gitignore
71
+ expect*
72
+ output*
73
+ EOF
74
+
69
75
test_expect_success ' status --column' '
70
76
cat >expect <<\EOF &&
71
77
# On branch master
@@ -83,8 +89,8 @@ test_expect_success 'status --column' '
83
89
# Untracked files:
84
90
# (use "git add <file>..." to include in what will be committed)
85
91
#
86
- # dir1/untracked dir2/untracked output
87
- # dir2/modified expect untracked
92
+ # dir1/untracked dir2/untracked
93
+ # dir2/modified untracked
88
94
#
89
95
EOF
90
96
COLUMNS=50 git -c status.displayCommentPrefix=true status --column="column dense" >output &&
@@ -116,8 +122,6 @@ cat >expect <<\EOF
116
122
# dir1/untracked
117
123
# dir2/modified
118
124
# dir2/untracked
119
- # expect
120
- # output
121
125
# untracked
122
126
#
123
127
EOF
@@ -167,8 +171,6 @@ Untracked files:
167
171
dir1/untracked
168
172
dir2/modified
169
173
dir2/untracked
170
- expect
171
- output
172
174
untracked
173
175
174
176
EOF
@@ -186,8 +188,6 @@ A dir2/added
186
188
?? dir1/untracked
187
189
?? dir2/modified
188
190
?? dir2/untracked
189
- ?? expect
190
- ?? output
191
191
?? untracked
192
192
EOF
193
193
320
320
test_i18ncmp expect output
321
321
'
322
322
323
- rm -f .gitignore
323
+ cat > .gitignore << \EOF
324
+ .gitignore
325
+ expect*
326
+ output*
327
+ EOF
324
328
325
329
cat > expect << \EOF
326
330
## master
@@ -329,8 +333,6 @@ A dir2/added
329
333
?? dir1/untracked
330
334
?? dir2/modified
331
335
?? dir2/untracked
332
- ?? expect
333
- ?? output
334
336
?? untracked
335
337
EOF
336
338
@@ -434,8 +436,6 @@ Untracked files:
434
436
dir2/modified
435
437
dir2/untracked
436
438
dir3/
437
- expect
438
- output
439
439
untracked
440
440
441
441
EOF
@@ -456,8 +456,6 @@ A dir2/added
456
456
?? dir2/modified
457
457
?? dir2/untracked
458
458
?? dir3/
459
- ?? expect
460
- ?? output
461
459
?? untracked
462
460
EOF
463
461
test_expect_success ' status -s -unormal' '
@@ -493,8 +491,6 @@ Untracked files:
493
491
dir2/untracked
494
492
dir3/untracked1
495
493
dir3/untracked2
496
- expect
497
- output
498
494
untracked
499
495
500
496
EOF
@@ -518,8 +514,6 @@ A dir2/added
518
514
?? dir1/untracked
519
515
?? dir2/modified
520
516
?? dir2/untracked
521
- ?? expect
522
- ?? output
523
517
?? untracked
524
518
EOF
525
519
test_expect_success ' status -s -uall' '
@@ -554,8 +548,6 @@ Untracked files:
554
548
untracked
555
549
../dir2/modified
556
550
../dir2/untracked
557
- ../expect
558
- ../output
559
551
../untracked
560
552
561
553
EOF
@@ -569,8 +561,6 @@ A ../dir2/added
569
561
?? untracked
570
562
?? ../dir2/modified
571
563
?? ../dir2/untracked
572
- ?? ../expect
573
- ?? ../output
574
564
?? ../untracked
575
565
EOF
576
566
test_expect_success ' status -s with relative paths' '
@@ -586,8 +576,6 @@ A dir2/added
586
576
?? dir1/untracked
587
577
?? dir2/modified
588
578
?? dir2/untracked
589
- ?? expect
590
- ?? output
591
579
?? untracked
592
580
EOF
593
581
@@ -625,8 +613,6 @@ Untracked files:
625
613
<BLUE>dir1/untracked<RESET>
626
614
<BLUE>dir2/modified<RESET>
627
615
<BLUE>dir2/untracked<RESET>
628
- <BLUE>expect<RESET>
629
- <BLUE>output<RESET>
630
616
<BLUE>untracked<RESET>
631
617
632
618
EOF
@@ -647,8 +633,6 @@ cat >expect <<\EOF
647
633
<BLUE>??<RESET> dir1/untracked
648
634
<BLUE>??<RESET> dir2/modified
649
635
<BLUE>??<RESET> dir2/untracked
650
- <BLUE>??<RESET> expect
651
- <BLUE>??<RESET> output
652
636
<BLUE>??<RESET> untracked
653
637
EOF
654
638
@@ -676,8 +660,6 @@ cat >expect <<\EOF
676
660
<BLUE>??<RESET> dir1/untracked
677
661
<BLUE>??<RESET> dir2/modified
678
662
<BLUE>??<RESET> dir2/untracked
679
- <BLUE>??<RESET> expect
680
- <BLUE>??<RESET> output
681
663
<BLUE>??<RESET> untracked
682
664
EOF
683
665
@@ -694,8 +676,6 @@ A dir2/added
694
676
?? dir1/untracked
695
677
?? dir2/modified
696
678
?? dir2/untracked
697
- ?? expect
698
- ?? output
699
679
?? untracked
700
680
EOF
701
681
@@ -755,8 +735,6 @@ Untracked files:
755
735
dir1/untracked
756
736
dir2/modified
757
737
dir2/untracked
758
- expect
759
- output
760
738
untracked
761
739
762
740
EOF
@@ -772,8 +750,6 @@ A dir2/added
772
750
?? dir1/untracked
773
751
?? dir2/modified
774
752
?? dir2/untracked
775
- ?? expect
776
- ?? output
777
753
?? untracked
778
754
EOF
779
755
@@ -798,8 +774,6 @@ Untracked files:
798
774
799
775
dir1/untracked
800
776
dir2/
801
- expect
802
- output
803
777
untracked
804
778
805
779
EOF
@@ -848,8 +822,6 @@ Untracked files:
848
822
dir1/untracked
849
823
dir2/modified
850
824
dir2/untracked
851
- expect
852
- output
853
825
untracked
854
826
855
827
EOF
870
842
?? dir1/untracked
871
843
?? dir2/modified
872
844
?? dir2/untracked
873
- ?? expect
874
- ?? output
875
845
?? untracked
876
846
EOF
877
847
test_expect_success ' status -s submodule summary is disabled by default' '
@@ -913,8 +883,6 @@ Untracked files:
913
883
dir1/untracked
914
884
dir2/modified
915
885
dir2/untracked
916
- expect
917
- output
918
886
untracked
919
887
920
888
EOF
940
908
?? dir1/untracked
941
909
?? dir2/modified
942
910
?? dir2/untracked
943
- ?? expect
944
- ?? output
945
911
?? untracked
946
912
EOF
947
913
test_expect_success ' status -s submodule summary' '
@@ -964,8 +930,6 @@ Untracked files:
964
930
dir1/untracked
965
931
dir2/modified
966
932
dir2/untracked
967
- expect
968
- output
969
933
untracked
970
934
971
935
no changes added to commit (use "git add" and/or "git commit -a")
@@ -983,8 +947,6 @@ cat >expect <<EOF
983
947
?? dir1/untracked
984
948
?? dir2/modified
985
949
?? dir2/untracked
986
- ?? expect
987
- ?? output
988
950
?? untracked
989
951
EOF
990
952
test_expect_success ' status -s submodule summary (clean submodule)' '
@@ -1025,8 +987,6 @@ Untracked files:
1025
987
dir1/untracked
1026
988
dir2/modified
1027
989
dir2/untracked
1028
- expect
1029
- output
1030
990
untracked
1031
991
1032
992
EOF
@@ -1080,8 +1040,6 @@ Untracked files:
1080
1040
dir1/untracked
1081
1041
dir2/modified
1082
1042
dir2/untracked
1083
- expect
1084
- output
1085
1043
untracked
1086
1044
1087
1045
EOF
@@ -1192,8 +1150,6 @@ Untracked files:
1192
1150
dir1/untracked
1193
1151
dir2/modified
1194
1152
dir2/untracked
1195
- expect
1196
- output
1197
1153
untracked
1198
1154
1199
1155
EOF
@@ -1254,8 +1210,6 @@ Untracked files:
1254
1210
dir1/untracked
1255
1211
dir2/modified
1256
1212
dir2/untracked
1257
- expect
1258
- output
1259
1213
untracked
1260
1214
1261
1215
EOF
@@ -1336,8 +1290,6 @@ cat > expect << EOF
1336
1290
; dir1/untracked
1337
1291
; dir2/modified
1338
1292
; dir2/untracked
1339
- ; expect
1340
- ; output
1341
1293
; untracked
1342
1294
;
1343
1295
EOF
@@ -1369,8 +1321,6 @@ Untracked files:
1369
1321
dir1/untracked
1370
1322
dir2/modified
1371
1323
dir2/untracked
1372
- expect
1373
- output
1374
1324
untracked
1375
1325
1376
1326
no changes added to commit (use "git add" and/or "git commit -a")
@@ -1400,8 +1350,6 @@ Untracked files:
1400
1350
dir1/untracked
1401
1351
dir2/modified
1402
1352
dir2/untracked
1403
- expect
1404
- output
1405
1353
untracked
1406
1354
1407
1355
EOF
0 commit comments