@@ -130,14 +130,14 @@ test_expect_success 'custom mergetool' '
130
130
test_when_finished "git reset --hard" &&
131
131
git checkout -b test$test_count branch1 &&
132
132
git submodule update -N &&
133
- test_must_fail git merge master >/dev/null 2>&1 &&
134
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
133
+ test_must_fail git merge master &&
134
+ ( yes "" | git mergetool both ) &&
135
135
( yes "" | git mergetool file1 file1 ) &&
136
- ( yes "" | git mergetool file2 "spaced name" >/dev/null 2>&1 ) &&
137
- ( yes "" | git mergetool subdir/file3 >/dev/null 2>&1 ) &&
138
- ( yes "d" | git mergetool file11 >/dev/null 2>&1 ) &&
139
- ( yes "d" | git mergetool file12 >/dev/null 2>&1 ) &&
140
- ( yes "l" | git mergetool submod >/dev/null 2>&1 ) &&
136
+ ( yes "" | git mergetool file2 "spaced name" ) &&
137
+ ( yes "" | git mergetool subdir/file3 ) &&
138
+ ( yes "d" | git mergetool file11 ) &&
139
+ ( yes "d" | git mergetool file12 ) &&
140
+ ( yes "l" | git mergetool submod ) &&
141
141
test "$(cat file1)" = "master updated" &&
142
142
test "$(cat file2)" = "master new" &&
143
143
test "$(cat subdir/file3)" = "master new sub" &&
@@ -153,15 +153,15 @@ test_expect_success 'mergetool crlf' '
153
153
# test_when_finished is LIFO.)
154
154
test_config core.autocrlf true &&
155
155
git checkout -b test$test_count branch1 &&
156
- test_must_fail git merge master >/dev/null 2>&1 &&
157
- ( yes "" | git mergetool file1 >/dev/null 2>&1 ) &&
158
- ( yes "" | git mergetool file2 >/dev/null 2>&1 ) &&
159
- ( yes "" | git mergetool "spaced name" >/dev/null 2>&1 ) &&
160
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
161
- ( yes "" | git mergetool subdir/file3 >/dev/null 2>&1 ) &&
162
- ( yes "d" | git mergetool file11 >/dev/null 2>&1 ) &&
163
- ( yes "d" | git mergetool file12 >/dev/null 2>&1 ) &&
164
- ( yes "r" | git mergetool submod >/dev/null 2>&1 ) &&
156
+ test_must_fail git merge master &&
157
+ ( yes "" | git mergetool file1 ) &&
158
+ ( yes "" | git mergetool file2 ) &&
159
+ ( yes "" | git mergetool "spaced name" ) &&
160
+ ( yes "" | git mergetool both ) &&
161
+ ( yes "" | git mergetool subdir/file3 ) &&
162
+ ( yes "d" | git mergetool file11 ) &&
163
+ ( yes "d" | git mergetool file12 ) &&
164
+ ( yes "r" | git mergetool submod ) &&
165
165
test "$(printf x | cat file1 -)" = "$(printf "master updated\r\nx")" &&
166
166
test "$(printf x | cat file2 -)" = "$(printf "master new\r\nx")" &&
167
167
test "$(printf x | cat subdir/file3 -)" = "$(printf "master new sub\r\nx")" &&
@@ -176,8 +176,8 @@ test_expect_success 'mergetool in subdir' '
176
176
git submodule update -N &&
177
177
(
178
178
cd subdir &&
179
- test_must_fail git merge master >/dev/null 2>&1 &&
180
- ( yes "" | git mergetool file3 >/dev/null 2>&1 ) &&
179
+ test_must_fail git merge master &&
180
+ ( yes "" | git mergetool file3 ) &&
181
181
test "$(cat file3)" = "master new sub"
182
182
)
183
183
'
@@ -188,14 +188,14 @@ test_expect_success 'mergetool on file in parent dir' '
188
188
git submodule update -N &&
189
189
(
190
190
cd subdir &&
191
- test_must_fail git merge master >/dev/null 2>&1 &&
192
- ( yes "" | git mergetool file3 >/dev/null 2>&1 ) &&
193
- ( yes "" | git mergetool ../file1 >/dev/null 2>&1 ) &&
194
- ( yes "" | git mergetool ../file2 ../spaced\ name >/dev/null 2>&1 ) &&
195
- ( yes "" | git mergetool ../both >/dev/null 2>&1 ) &&
196
- ( yes "d" | git mergetool ../file11 >/dev/null 2>&1 ) &&
197
- ( yes "d" | git mergetool ../file12 >/dev/null 2>&1 ) &&
198
- ( yes "l" | git mergetool ../submod >/dev/null 2>&1 ) &&
191
+ test_must_fail git merge master &&
192
+ ( yes "" | git mergetool file3 ) &&
193
+ ( yes "" | git mergetool ../file1 ) &&
194
+ ( yes "" | git mergetool ../file2 ../spaced\ name ) &&
195
+ ( yes "" | git mergetool ../both ) &&
196
+ ( yes "d" | git mergetool ../file11 ) &&
197
+ ( yes "d" | git mergetool ../file12 ) &&
198
+ ( yes "l" | git mergetool ../submod ) &&
199
199
test "$(cat ../file1)" = "master updated" &&
200
200
test "$(cat ../file2)" = "master new" &&
201
201
test "$(cat ../submod/bar)" = "branch1 submodule" &&
@@ -209,9 +209,9 @@ test_expect_success 'mergetool skips autoresolved' '
209
209
git submodule update -N &&
210
210
test_must_fail git merge master &&
211
211
test -n "$(git ls-files -u)" &&
212
- ( yes "d" | git mergetool file11 >/dev/null 2>&1 ) &&
213
- ( yes "d" | git mergetool file12 >/dev/null 2>&1 ) &&
214
- ( yes "l" | git mergetool submod >/dev/null 2>&1 ) &&
212
+ ( yes "d" | git mergetool file11 ) &&
213
+ ( yes "d" | git mergetool file12 ) &&
214
+ ( yes "l" | git mergetool submod ) &&
215
215
output="$(git mergetool --no-prompt)" &&
216
216
test "$output" = "No files need merging"
217
217
'
@@ -259,9 +259,9 @@ test_expect_success 'mergetool skips resolved paths when rerere is active' '
259
259
rm -rf .git/rr-cache &&
260
260
git checkout -b test$test_count branch1 &&
261
261
git submodule update -N &&
262
- test_must_fail git merge master >/dev/null 2>&1 &&
263
- ( yes "l" | git mergetool --no-prompt submod >/dev/null 2>&1 ) &&
264
- ( yes "d" "d" | git mergetool --no-prompt >/dev/null 2>&1 ) &&
262
+ test_must_fail git merge master &&
263
+ ( yes "l" | git mergetool --no-prompt submod ) &&
264
+ ( yes "d" "d" | git mergetool --no-prompt ) &&
265
265
git submodule update -N &&
266
266
output="$(yes "n" | git mergetool --no-prompt)" &&
267
267
test "$output" = "No files need merging"
@@ -369,9 +369,9 @@ test_expect_success 'deleted vs modified submodule' '
369
369
git checkout -b test$test_count.a test$test_count &&
370
370
test_must_fail git merge master &&
371
371
test -n "$(git ls-files -u)" &&
372
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
373
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
374
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
372
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
373
+ ( yes "" | git mergetool both ) &&
374
+ ( yes "d" | git mergetool file11 file12 ) &&
375
375
( yes "r" | git mergetool submod ) &&
376
376
rmdir submod && mv submod-movedaside submod &&
377
377
test "$(cat submod/bar)" = "branch1 submodule" &&
@@ -386,9 +386,9 @@ test_expect_success 'deleted vs modified submodule' '
386
386
git submodule update -N &&
387
387
test_must_fail git merge master &&
388
388
test -n "$(git ls-files -u)" &&
389
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
390
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
391
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
389
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
390
+ ( yes "" | git mergetool both ) &&
391
+ ( yes "d" | git mergetool file11 file12 ) &&
392
392
( yes "l" | git mergetool submod ) &&
393
393
test ! -e submod &&
394
394
output="$(git mergetool --no-prompt)" &&
@@ -400,9 +400,9 @@ test_expect_success 'deleted vs modified submodule' '
400
400
git submodule update -N &&
401
401
test_must_fail git merge test$test_count &&
402
402
test -n "$(git ls-files -u)" &&
403
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
404
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
405
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
403
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
404
+ ( yes "" | git mergetool both ) &&
405
+ ( yes "d" | git mergetool file11 file12 ) &&
406
406
( yes "r" | git mergetool submod ) &&
407
407
test ! -e submod &&
408
408
test -d submod.orig &&
@@ -416,9 +416,9 @@ test_expect_success 'deleted vs modified submodule' '
416
416
git submodule update -N &&
417
417
test_must_fail git merge test$test_count &&
418
418
test -n "$(git ls-files -u)" &&
419
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
420
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
421
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
419
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
420
+ ( yes "" | git mergetool both ) &&
421
+ ( yes "d" | git mergetool file11 file12 ) &&
422
422
( yes "l" | git mergetool submod ) &&
423
423
test "$(cat submod/bar)" = "master submodule" &&
424
424
git submodule update -N &&
@@ -440,9 +440,9 @@ test_expect_success 'file vs modified submodule' '
440
440
git checkout -b test$test_count.a branch1 &&
441
441
test_must_fail git merge master &&
442
442
test -n "$(git ls-files -u)" &&
443
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
444
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
445
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
443
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
444
+ ( yes "" | git mergetool both ) &&
445
+ ( yes "d" | git mergetool file11 file12 ) &&
446
446
( yes "r" | git mergetool submod ) &&
447
447
rmdir submod && mv submod-movedaside submod &&
448
448
test "$(cat submod/bar)" = "branch1 submodule" &&
@@ -456,9 +456,9 @@ test_expect_success 'file vs modified submodule' '
456
456
git checkout -b test$test_count.b test$test_count &&
457
457
test_must_fail git merge master &&
458
458
test -n "$(git ls-files -u)" &&
459
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
460
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
461
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
459
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
460
+ ( yes "" | git mergetool both ) &&
461
+ ( yes "d" | git mergetool file11 file12 ) &&
462
462
( yes "l" | git mergetool submod ) &&
463
463
git submodule update -N &&
464
464
test "$(cat submod)" = "not a submodule" &&
@@ -472,9 +472,9 @@ test_expect_success 'file vs modified submodule' '
472
472
git submodule update -N &&
473
473
test_must_fail git merge test$test_count &&
474
474
test -n "$(git ls-files -u)" &&
475
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
476
- ( yes "" | git mergetool both >/dev/null 2>&1 ) &&
477
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
475
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
476
+ ( yes "" | git mergetool both ) &&
477
+ ( yes "d" | git mergetool file11 file12 ) &&
478
478
( yes "r" | git mergetool submod ) &&
479
479
test -d submod.orig &&
480
480
git submodule update -N &&
@@ -488,9 +488,9 @@ test_expect_success 'file vs modified submodule' '
488
488
git submodule update -N &&
489
489
test_must_fail git merge test$test_count &&
490
490
test -n "$(git ls-files -u)" &&
491
- ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 >/dev/null 2>&1 ) &&
492
- ( yes "" | git mergetool both>/dev/null 2>&1 ) &&
493
- ( yes "d" | git mergetool file11 file12 >/dev/null 2>&1 ) &&
491
+ ( yes "" | git mergetool file1 file2 spaced\ name subdir/file3 ) &&
492
+ ( yes "" | git mergetool both ) &&
493
+ ( yes "d" | git mergetool file11 file12 ) &&
494
494
( yes "l" | git mergetool submod ) &&
495
495
test "$(cat submod/bar)" = "master submodule" &&
496
496
git submodule update -N &&
@@ -543,7 +543,7 @@ test_expect_success 'submodule in subdirectory' '
543
543
git add subdir/subdir_module &&
544
544
git commit -m "change submodule in subdirectory on test$test_count.b" &&
545
545
546
- test_must_fail git merge test$test_count.a >/dev/null 2>&1 &&
546
+ test_must_fail git merge test$test_count.a &&
547
547
(
548
548
cd subdir &&
549
549
( yes "l" | git mergetool subdir_module )
@@ -554,7 +554,7 @@ test_expect_success 'submodule in subdirectory' '
554
554
git reset --hard &&
555
555
git submodule update -N &&
556
556
557
- test_must_fail git merge test$test_count.a >/dev/null 2>&1 &&
557
+ test_must_fail git merge test$test_count.a &&
558
558
( yes "r" | git mergetool subdir/subdir_module ) &&
559
559
test "$(cat subdir/subdir_module/file15)" = "test$test_count.b" &&
560
560
git submodule update -N &&
@@ -641,7 +641,7 @@ test_expect_success 'filenames seen by tools start with ./' '
641
641
test_config mergetool.myecho.trustExitCode true &&
642
642
test_must_fail git merge master &&
643
643
git mergetool --no-prompt --tool myecho -- both >actual &&
644
- grep ^\./both_LOCAL_ actual >/dev/null
644
+ grep ^\./both_LOCAL_ actual
645
645
'
646
646
647
647
test_lazy_prereq MKTEMP '
@@ -658,8 +658,8 @@ test_expect_success MKTEMP 'temporary filenames are used with mergetool.writeToT
658
658
test_config mergetool.myecho.trustExitCode true &&
659
659
test_must_fail git merge master &&
660
660
git mergetool --no-prompt --tool myecho -- both >actual &&
661
- ! grep ^\./both_LOCAL_ actual >/dev/null &&
662
- grep /both_LOCAL_ actual >/dev/null
661
+ ! grep ^\./both_LOCAL_ actual &&
662
+ grep /both_LOCAL_ actual
663
663
'
664
664
665
665
test_expect_success ' diff.orderFile configuration is honored' '
0 commit comments