276
git checkout A^0 &&
277
278
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
279
- test_i18ngrep "CONFLICT (\(.*\)/\1)" out &&
279
+ test_grep "CONFLICT (\(.*\)/\1)" out &&
280
281
git ls-files -s >out &&
282
test_line_count = 8 out &&
515
git checkout A^0 &&
516
517
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
518
- test_i18ngrep "CONFLICT.*directory rename split" out &&
518
+ test_grep "CONFLICT.*directory rename split" out &&
519
520
git ls-files -s >out &&
521
test_line_count = 3 out &&
591
git rev-parse >expect \
592
O:z/b O:z/c B:x/d &&
593
test_cmp expect actual &&
594
- test_i18ngrep ! "CONFLICT.*directory rename split" out
594
+ test_grep ! "CONFLICT.*directory rename split" out
595
)
596
'
597
726
git checkout A^0 &&
727
728
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
729
- test_i18ngrep CONFLICT.*rename/rename.*z/d.*x/d.*w/d out &&
730
- test_i18ngrep ! CONFLICT.*rename/rename.*y/d out &&
729
+ test_grep CONFLICT.*rename/rename.*z/d.*x/d.*w/d out &&
730
+ test_grep ! CONFLICT.*rename/rename.*y/d out &&
731
732
git ls-files -s >out &&
733
test_line_count = 5 out &&
938
git checkout A^0 &&
939
940
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
941
- test_i18ngrep "CONFLICT.*implicit dir rename" out &&
941
+ test_grep "CONFLICT.*implicit dir rename" out &&
942
943
git ls-files -s >out &&
944
test_line_count = 6 out &&
1013
git checkout A^0 &&
1014
1015
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1016
- test_i18ngrep "CONFLICT (add/add).* y/d" out &&
1016
+ test_grep "CONFLICT (add/add).* y/d" out &&
1017
1018
git ls-files -s >out &&
1019
test_line_count = 5 out &&
1094
git checkout A^0 &&
1095
1096
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1097
- test_i18ngrep "CONFLICT (rename/rename).*x/d.*w/d.*z/d" out &&
1098
- test_i18ngrep "CONFLICT (add/add).* y/d" out &&
1097
+ test_grep "CONFLICT (rename/rename).*x/d.*w/d.*z/d" out &&
1098
+ test_grep "CONFLICT (add/add).* y/d" out &&
1099
1100
git ls-files -s >out &&
1101
test_line_count = 9 out &&
1179
git checkout A^0 &&
1180
1181
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1182
- test_i18ngrep "CONFLICT (file/directory).*y/d" out &&
1182
+ test_grep "CONFLICT (file/directory).*y/d" out &&
1183
1184
git ls-files -s >out &&
1185
test_line_count = 6 out &&
1278
git checkout A^0 &&
1279
1280
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1281
- test_i18ngrep "CONFLICT (rename/delete).*z/c.*y/c" out &&
1281
+ test_grep "CONFLICT (rename/delete).*z/c.*y/c" out &&
1282
1283
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
1284
then
1740
git checkout A^0 &&
1741
1742
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1743
- test_i18ngrep "CONFLICT (rename/rename).*z/b.*y/b.*w/b" out &&
1744
- test_i18ngrep "CONFLICT (rename/rename).*z/c.*y/c.*x/c" out &&
1743
+ test_grep "CONFLICT (rename/rename).*z/b.*y/b.*w/b" out &&
1744
+ test_grep "CONFLICT (rename/rename).*z/c.*y/c.*x/c" out &&
1745
1746
git ls-files -s >out &&
1747
test_line_count = 7 out &&
1813
git checkout A^0 &&
1814
1815
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1816
- test_i18ngrep "CONFLICT (\(.*\)/\1)" out &&
1816
+ test_grep "CONFLICT (\(.*\)/\1)" out &&
1817
1818
git ls-files -s >out &&
1819
test_line_count = 4 out &&
1900
git checkout A^0 &&
1901
1902
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1903
- test_i18ngrep "CONFLICT (rename/rename).*x/d.*w/d.*y/d" out &&
1903
+ test_grep "CONFLICT (rename/rename).*x/d.*w/d.*y/d" out &&
1904
1905
git ls-files -s >out &&
1906
test_line_count = 5 out &&
1965
git checkout A^0 &&
1966
1967
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
1968
- test_i18ngrep "CONFLICT (rename/delete).*x/d.*y/d" out &&
1968
+ test_grep "CONFLICT (rename/delete).*x/d.*y/d" out &&
1969
1970
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
1971
then
2071
git checkout A^0 &&
2072
2073
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
2074
- test_i18ngrep "CONFLICT (rename/delete).*x/d.*y/d" out &&
2074
+ test_grep "CONFLICT (rename/delete).*x/d.*y/d" out &&
2075
2076
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
2077
then
2330
git checkout A^0 &&
2331
2332
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
2333
- test_i18ngrep "CONFLICT (modify/delete).* z/d" out &&
2333
+ test_grep "CONFLICT (modify/delete).* z/d" out &&
2334
2335
git ls-files -s >out &&
2336
test_line_count = 5 out &&
2491
git checkout A^0 &&
2492
2493
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
2494
- test_i18ngrep CONFLICT.*rename/rename.*z/c.*y/c.*w/c out &&
2495
- test_i18ngrep CONFLICT.*rename/rename.*z/b.*y/b.*w/b out &&
2494
+ test_grep CONFLICT.*rename/rename.*z/c.*y/c.*w/c out &&
2495
+ test_grep CONFLICT.*rename/rename.*z/b.*y/b.*w/b out &&
2496
2497
git ls-files -s >out &&
2498
test_line_count = 7 out &&
2741
git checkout A^0 &&
2742
2743
git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
2744
- test_i18ngrep "WARNING: Avoiding applying x -> z rename to x/f" out &&
2744
+ test_grep "WARNING: Avoiding applying x -> z rename to x/f" out &&
2745
2746
git ls-files -s >out &&
2747
test_line_count = 6 out &&
2830
git checkout A^0 &&
2831
2832
git -c merge.directoryRenames=true merge -s recursive B^0 >out &&
2833
- test_i18ngrep "WARNING: Avoiding applying z -> y rename to z/t" out &&
2834
- test_i18ngrep "WARNING: Avoiding applying y -> x rename to y/a" out &&
2835
- test_i18ngrep "WARNING: Avoiding applying x -> w rename to x/b" out &&
2836
- test_i18ngrep "WARNING: Avoiding applying w -> v rename to w/c" out &&
2833
+ test_grep "WARNING: Avoiding applying z -> y rename to z/t" out &&
2834
+ test_grep "WARNING: Avoiding applying y -> x rename to y/a" out &&
2835
+ test_grep "WARNING: Avoiding applying x -> w rename to x/b" out &&
2836
+ test_grep "WARNING: Avoiding applying w -> v rename to w/c" out &&
2837
2838
git ls-files -s >out &&
2839
test_line_count = 7 out &&
3215
3216
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
3217
test_path_is_missing .git/MERGE_HEAD &&
3218
- test_i18ngrep "The following untracked working tree files would be overwritten by merge" err &&
3218
+ test_grep "The following untracked working tree files would be overwritten by merge" err &&
3219
3220
git ls-files -s >out &&
3221
test_line_count = 1 out &&
3287
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3288
then
3289
test_path_is_missing .git/MERGE_HEAD &&
3290
- test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
3290
+ test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
3291
3292
git ls-files -s >out &&
3293
test_line_count = 1 out &&
3296
git ls-files -o >out &&
3297
test_line_count = 5 out
3298
else
3299
- test_i18ngrep "CONFLICT (rename/delete).*Version B\^0 of y/d left in tree at y/d~B\^0" out &&
3300
- test_i18ngrep "Error: Refusing to lose untracked file at y/e; writing to y/e~B\^0 instead" out &&
3299
+ test_grep "CONFLICT (rename/delete).*Version B\^0 of y/d left in tree at y/d~B\^0" out &&
3300
+ test_grep "Error: Refusing to lose untracked file at y/e; writing to y/e~B\^0 instead" out &&
3301
3302
git ls-files -s >out &&
3303
test_line_count = 3 out &&
3377
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3378
then
3379
test_path_is_missing .git/MERGE_HEAD &&
3380
- test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
3380
+ test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
3381
3382
git ls-files -s >out &&
3383
test_line_count = 4 out &&
3386
git ls-files -o >out &&
3387
test_line_count = 3 out
3388
else
3389
- test_i18ngrep "CONFLICT (rename/rename)" out &&
3390
- test_i18ngrep "Refusing to lose untracked file at y/c; adding as y/c~B\^0 instead" out &&
3389
+ test_grep "CONFLICT (rename/rename)" out &&
3390
+ test_grep "Refusing to lose untracked file at y/c; adding as y/c~B\^0 instead" out &&
3391
3392
git ls-files -s >out &&
3393
test_line_count = 6 out &&
3428
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3429
then
3430
test_path_is_missing .git/MERGE_HEAD &&
3431
- test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
3431
+ test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
3432
3433
git ls-files -s >out &&
3434
test_line_count = 4 out &&
3437
git ls-files -o >out &&
3438
test_line_count = 3 out
3439
else
3440
- test_i18ngrep "CONFLICT (rename/rename)" out &&
3441
- test_i18ngrep "Refusing to lose untracked file at y/c; adding as y/c~HEAD instead" out &&
3440
+ test_grep "CONFLICT (rename/rename)" out &&
3441
+ test_grep "Refusing to lose untracked file at y/c; adding as y/c~HEAD instead" out &&
3442
3443
git ls-files -s >out &&
3444
test_line_count = 6 out &&
3517
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3518
then
3519
test_path_is_missing .git/MERGE_HEAD &&
3520
- test_i18ngrep "error: The following untracked working tree files would be overwritten by merge" err &&
3520
+ test_grep "error: The following untracked working tree files would be overwritten by merge" err &&
3521
3522
git ls-files -s >out &&
3523
test_line_count = 6 out &&
3526
git ls-files -o >out &&
3527
test_line_count = 3 out
3528
else
3529
- test_i18ngrep "CONFLICT (rename/rename)" out &&
3530
- test_i18ngrep "Refusing to lose untracked file at y/wham" out &&
3529
+ test_grep "CONFLICT (rename/rename)" out &&
3530
+ test_grep "Refusing to lose untracked file at y/wham" out &&
3531
3532
git ls-files -s >out &&
3533
test_line_count = 6 out &&
3606
echo random >z/c &&
3607
3608
git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
3609
- test_i18ngrep ! "following untracked working tree files would be overwritten by merge" err &&
3609
+ test_grep ! "following untracked working tree files would be overwritten by merge" err &&
3610
3611
git ls-files -s >out &&
3612
test_line_count = 3 out &&
3690
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3691
then
3692
test_path_is_missing .git/MERGE_HEAD &&
3693
- test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
3693
+ test_grep "error: Your local changes to the following files would be overwritten by merge" err
3694
else
3695
- test_i18ngrep "Refusing to lose dirty file at z/c" out &&
3695
+ test_grep "Refusing to lose dirty file at z/c" out &&
3696
3697
git ls-files -s >out &&
3698
test_line_count = 2 out &&
3770
then
3771
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
3772
test_path_is_missing .git/MERGE_HEAD &&
3773
- test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
3773
+ test_grep "error: Your local changes to the following files would be overwritten by merge" err
3774
else
3775
git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
3776
- test_i18ngrep "Refusing to lose dirty file at z/c" out &&
3776
+ test_grep "Refusing to lose dirty file at z/c" out &&
3777
3778
git ls-files -s >out &&
3779
test_line_count = 3 out &&
3853
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3854
then
3855
test_path_is_missing .git/MERGE_HEAD &&
3856
- test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
3856
+ test_grep "error: Your local changes to the following files would be overwritten by merge" err
3857
else
3858
- test_i18ngrep "following files would be overwritten by merge" err
3858
+ test_grep "following files would be overwritten by merge" err
3859
fi &&
3860
3861
grep -q stuff y/c &&
3927
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
3928
then
3929
test_path_is_missing .git/MERGE_HEAD &&
3930
- test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
3930
+ test_grep "error: Your local changes to the following files would be overwritten by merge" err
3931
else
3932
- test_i18ngrep "Refusing to lose dirty file at z/c" out &&
3932
+ test_grep "Refusing to lose dirty file at z/c" out &&
3933
3934
git ls-files -s >out &&
3935
test_line_count = 4 out &&
4013
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
4014
then
4015
test_path_is_missing .git/MERGE_HEAD &&
4016
- test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
4016
+ test_grep "error: Your local changes to the following files would be overwritten by merge" err
4017
else
4018
- test_i18ngrep "CONFLICT (rename/rename)" out &&
4019
- test_i18ngrep "Refusing to lose dirty file at y/c" out &&
4018
+ test_grep "CONFLICT (rename/rename)" out &&
4019
+ test_grep "Refusing to lose dirty file at y/c" out &&
4020
4021
git ls-files -s >out &&
4022
test_line_count = 7 out &&
4102
if test "$GIT_TEST_MERGE_ALGORITHM" = ort
4103
then
4104
test_path_is_missing .git/MERGE_HEAD &&
4105
- test_i18ngrep "error: Your local changes to the following files would be overwritten by merge" err
4105
+ test_grep "error: Your local changes to the following files would be overwritten by merge" err
4106
else
4107
- test_i18ngrep "CONFLICT (rename/rename)" out &&
4108
- test_i18ngrep "Refusing to lose dirty file at y/wham" out &&
4107
+ test_grep "CONFLICT (rename/rename)" out &&
4108
+ test_grep "Refusing to lose dirty file at y/wham" out &&
4109
4110
git ls-files -s >out &&
4111
test_line_count = 4 out &&
5417
5418
test_must_fail git merge -s recursive B^0 >out 2>err &&
5419
5420
- test_i18ngrep CONFLICT..file.location.*z/e/f.added.in.B^0.*y/e/f out &&
5421
- test_i18ngrep CONFLICT..file.location.*z/d.added.in.B^0.*y/d out &&
5420
+ test_grep CONFLICT..file.location.*z/e/f.added.in.B^0.*y/e/f out &&
5421
+ test_grep CONFLICT..file.location.*z/d.added.in.B^0.*y/d out &&
5422
5423
git ls-files >paths &&
5424
! grep z/ paths &&
5441
5442
git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
5443
5444
- test_i18ngrep Path.updated:.*z/e/f.added.in.B^0.*y/e/f out &&
5445
- test_i18ngrep Path.updated:.*z/d.added.in.B^0.*y/d out &&
5444
+ test_grep Path.updated:.*z/e/f.added.in.B^0.*y/e/f out &&
5445
+ test_grep Path.updated:.*z/d.added.in.B^0.*y/d out &&
5446
5447
git ls-files >paths &&
5448
! grep z/ paths &&
5507
5508
test_must_fail git merge -s recursive B^0 >out 2>err &&
5509
5510
- test_i18ngrep CONFLICT.*content.*Merge.conflict.in.y/d out &&
5511
- test_i18ngrep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
5510
+ test_grep CONFLICT.*content.*Merge.conflict.in.y/d out &&
5511
+ test_grep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
5512
5513
git ls-files >paths &&
5514
! grep z/ paths &&
5529
5530
test_must_fail git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
5531
5532
- test_i18ngrep CONFLICT.*content.*Merge.conflict.in.y/d out &&
5533
- test_i18ngrep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
5532
+ test_grep CONFLICT.*content.*Merge.conflict.in.y/d out &&
5533
+ test_grep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
5534
5535
git ls-files >paths &&
5536
! grep z/ paths &&
5593
5594
test_must_fail git merge -s recursive B^0 >out 2>err &&
5595
5596
- test_i18ngrep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
5596
+ test_grep CONFLICT..file.location.*x/d.renamed.to.z/d.*moved.to.y/d out &&
5597
5598
git ls-files >paths &&
5599
! grep z/ paths &&
5614
5615
git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
5616
5617
- test_i18ngrep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
5617
+ test_grep Path.updated:.*x/d.renamed.to.z/d.in.B^0.*moving.it.to.y/d out &&
5618
5619
git ls-files >paths &&
5620
! grep z/ paths &&
5682
5683
test_must_fail git merge -s recursive B^0 >out 2>err &&
5684
5685
- test_i18ngrep CONFLICT..file.location.*a/y.renamed.to.b/y.*moved.to.d/y out &&
5686
- test_i18ngrep CONFLICT..file.location.*a/y.renamed.to.c/y.*moved.to.d/y out &&
5685
+ test_grep CONFLICT..file.location.*a/y.renamed.to.b/y.*moved.to.d/y out &&
5686
+ test_grep CONFLICT..file.location.*a/y.renamed.to.c/y.*moved.to.d/y out &&
5687
5688
git ls-files >paths &&
5689
! grep b/ paths &&
5706
5707
git -c merge.directoryRenames=true merge -s recursive B^0 >out 2>err &&
5708
5709
- test_i18ngrep Path.updated.*a/y.renamed.to.b/y.*moving.it.to.d/y out &&
5710
- test_i18ngrep Path.updated.*a/y.renamed.to.c/y.*moving.it.to.d/y out &&
5709
+ test_grep Path.updated.*a/y.renamed.to.b/y.*moving.it.to.d/y out &&
5710
+ test_grep Path.updated.*a/y.renamed.to.c/y.*moving.it.to.d/y out &&
5711
5712
git ls-files >paths &&
5713
! grep b/ paths &&
5821
5822
git -c merge.directoryRenames=conflict merge -s recursive C^0 >out 2>err &&
5823
5824
- test_i18ngrep ! CONFLICT out &&
5825
- test_i18ngrep ! BUG: err &&
5826
- test_i18ngrep ! core.dumped err &&
5824
+ test_grep ! CONFLICT out &&
5825
+ test_grep ! BUG: err &&
5826
+ test_grep ! core.dumped err &&
5827
test_must_be_empty err &&
5828
5829
git ls-files >paths &&