From: Thomas Rast Date: Thu, 19 Feb 2009 11:13:36 GMT Subject: [PATCH v2 2/8] Test that diff can read from stdin Message-ID: <54ce919e5c1f9c295018ea6e4a0cf2aeaf465591.1235041345.git.trast@student.ethz.ch> In-Reply-To: Signed-off-by: Thomas Rast --- Same as v1. t/t4002-diff-basic.sh | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh index cc3681f..18695ce 100755 --- a/t/t4002-diff-basic.sh +++ b/t/t4002-diff-basic.sh @@ -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 -- 1.6.2.rc1.266.gce6c4