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 &&
|
git diff-tree -r -R $tree_A $tree_B >.test-b &&
|
||||||
cmp -s .test-a .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
|
test_done
|
||||||
|
Loading…
Reference in New Issue
Block a user