Skip to content

Commit 8023a5e

Browse files
Denton-Lgitster
authored andcommitted
t4068: remove unnecessary >tmp
The many `git diff` invocations have a `>tmp` redirection even though the file is not being used afterwards. Remove these unnecessary redirections. Signed-off-by: Denton Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 54e85e7 commit 8023a5e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/t4068-diff-symmetric.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,27 +64,27 @@ test_expect_success 'diff with two merge bases' '
6464
'
6565

6666
test_expect_success 'diff with no merge bases' '
67-
test_must_fail git diff br2...br3 >tmp 2>err &&
67+
test_must_fail git diff br2...br3 2>err &&
6868
test_i18ngrep "fatal: br2...br3: no merge base" err
6969
'
7070

7171
test_expect_success 'diff with too many symmetric differences' '
72-
test_must_fail git diff br1...master br2...br3 >tmp 2>err &&
72+
test_must_fail git diff br1...master br2...br3 2>err &&
7373
test_i18ngrep "usage" err
7474
'
7575

7676
test_expect_success 'diff with symmetric difference and extraneous arg' '
77-
test_must_fail git diff master br1...master >tmp 2>err &&
77+
test_must_fail git diff master br1...master 2>err &&
7878
test_i18ngrep "usage" err
7979
'
8080

8181
test_expect_success 'diff with two ranges' '
82-
test_must_fail git diff master br1..master br2..br3 >tmp 2>err &&
82+
test_must_fail git diff master br1..master br2..br3 2>err &&
8383
test_i18ngrep "usage" err
8484
'
8585

8686
test_expect_success 'diff with ranges and extra arg' '
87-
test_must_fail git diff master br1..master commit-D >tmp 2>err &&
87+
test_must_fail git diff master br1..master commit-D 2>err &&
8888
test_i18ngrep "usage" err
8989
'
9090

0 commit comments

Comments
 (0)