Skip to content

Commit f7caf14

Browse files
Beat Bolligitster
authored andcommitted
t/t4*: merge a "grep | sed" pipeline
Signed-off-by: Beat Bolli <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 67dd07e commit f7caf14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4002-diff-basic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ test_expect_success 'diff-tree -r B A == diff-tree -r -R A B' '
405405

406406
test_expect_success 'diff can read from stdin' '
407407
test_must_fail git diff --no-index -- MN - < NN |
408-
grep -v "^index" | sed "s#/-#/NN#" >.test-a &&
408+
sed "/^index/d; s#/-#/NN#" >.test-a &&
409409
test_must_fail git diff --no-index -- MN NN |
410410
grep -v "^index" >.test-b &&
411411
test_cmp .test-a .test-b

0 commit comments

Comments
 (0)