diff options
author | Beat Bolli <bb@drbeat.li> | 2024-03-15 20:46:14 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-16 11:08:57 -0700 |
commit | f7caf1479ed5a189ddcf51d9afa7cdd7260de550 (patch) | |
tree | b98f0510cb6b98de7e57383f6eb7d234580fd423 | |
parent | 67dd07e8af11534d8bd723747f9c0a91c530b6bc (diff) | |
download | git-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-x | t/t4002-diff-basic.sh | 2 |
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 |