mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
Test that diff can read from stdin
Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
901c369af5
commit
85569d7498
|
@ -258,4 +258,12 @@ test_expect_success \
|
|||
git diff-tree -r -R $tree_A $tree_B >.test-b &&
|
||||
cmp -s .test-a .test-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 &&
|
||||
test_must_fail git diff --no-index -- MN NN |
|
||||
grep -v "^index" >.test-b &&
|
||||
test_cmp .test-a .test-b'
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue