diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-03-11 13:47:01 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-03-11 13:47:01 -0700 |
| commit | e785dadc90df20e1038c053dc168a6458b1e672b (patch) | |
| tree | 5c147998a1030a06155e64686229929db8fe1776 /t/t4002-diff-basic.sh | |
| parent | 7d59ceed9d1e4f8f0dc52cebf55219d6d395c9da (diff) | |
| parent | b26d8d217d8d960cbd9ed1dbf6b3cccfd1a3a4db (diff) | |
| download | git-e785dadc90df20e1038c053dc168a6458b1e672b.tar.xz | |
Merge branch 'tr/gcov'
* tr/gcov:
Test git-patch-id
Test rev-list --parents/--children
Test log --decorate
Test fsck a bit harder
Test log --graph
Test diff --dirstat functionality
Test that diff can read from stdin
Support coverage testing with GCC/gcov
Diffstat (limited to 't/t4002-diff-basic.sh')
| -rwxr-xr-x | 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 cc3681f161..18695ce821 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 |
