aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBeat Bolli <bb@drbeat.li>2024-03-15 20:46:14 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-16 11:08:57 -0700
commitf7caf1479ed5a189ddcf51d9afa7cdd7260de550 (patch)
treeb98f0510cb6b98de7e57383f6eb7d234580fd423
parent67dd07e8af11534d8bd723747f9c0a91c530b6bc (diff)
downloadgit-f7caf1479ed5a189ddcf51d9afa7cdd7260de550.tar.gz
t/t4*: merge a "grep | sed" pipeline
Signed-off-by: Beat Bolli <dev+git@drbeat.li> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t4002-diff-basic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh
index 7afc883ec3..cb3307010c 100755
--- a/t/t4002-diff-basic.sh
+++ b/t/t4002-diff-basic.sh
@@ -405,7 +405,7 @@ test_expect_success 'diff-tree -r B A == diff-tree -r -R A B' '
test_expect_success 'diff can read from stdin' '
test_must_fail git diff --no-index -- MN - < NN |
- grep -v "^index" | sed "s#/-#/NN#" >.test-a &&
+ sed "/^index/d; s#/-#/NN#" >.test-a &&
test_must_fail git diff --no-index -- MN NN |
grep -v "^index" >.test-b &&
test_cmp .test-a .test-b