summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 901c369)
raw | patch | inline | side by side (parent: 901c369)
author | Thomas Rast <trast@student.ethz.ch> | |
Thu, 19 Feb 2009 11:13:36 +0000 (12:13 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 20 Feb 2009 08:02:40 +0000 (00:02 -0800) |
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4002-diff-basic.sh | patch | blob | history |
diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh
index cc3681f16118ca70ae9f65a27ccd6f354a6deee1..18695ce8218a7b383258eeb0bad84b4d4bde45be 100755 (executable)
--- a/t/t4002-diff-basic.sh
+++ b/t/t4002-diff-basic.sh
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