{"thread":{"id":"22743","subject":"[PATCH] git-diff: add a test for git diff --quiet -w","startedAt":"2010-02-22T02:58:44Z","lastAt":"2010-02-22T06:03:32Z","messageCount":2,"participants":["Larry D'Anna","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"135184","messageId":"1266807524-28487-1-git-send-email-larry@elder-gods.org","threadId":"22743","inReplyTo":null,"subject":"[PATCH] git-diff: add a test for git diff --quiet -w","fromName":"Larry D'Anna","fromEmail":"larry@elder-gods.org","sentAt":"2010-02-22T02:58:44Z","receivedAt":"2010-02-22T02:58:44Z","isPatch":true,"sender":{"key":"larry@elder-gods.org","avatar":"https://avatars.githubusercontent.com/u/3013304?v=4"},"body":"This patch adds two test cases for:\n\n6977c25 git diff --quiet -w: check and report the status\n\nSigned-off-by: Larry D'Anna <larry@elder-gods.org>\n---\n t/t4017-diff-retval.sh |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t4017-diff-retval.sh b/t/t4017-diff-retval.sh\nindex 60dd201..14f80ca 100755\n--- a/t/t4017-diff-retval.sh\n+++ b/t/t4017-diff-retval.sh\n@@ -5,6 +5,9 @@ test_description='Return value of diffs'\n . ./test-lib.sh\n \n test_expect_success 'setup' '\n+\techo \"1 \" >a &&\n+\tgit add . &&\n+\tgit commit -m zeroth &&\n \techo 1 >a &&\n \tgit add . &&\n \tgit commit -m first &&\n@@ -13,6 +16,16 @@ test_expect_success 'setup' '\n \tgit commit -a -m second\n '\n \n+test_expect_success 'git diff --quiet -w  HEAD^^ HEAD^' '\n+\tgit diff --quiet -w HEAD^^ HEAD^\n+\ttest $? = 0\n+'\n+\n+test_expect_success 'git diff --quiet -w  HEAD^ HEAD' '\n+\tgit diff --quiet -w HEAD^ HEAD\n+\ttest $? = 1\n+'\n+\n test_expect_success 'git diff-tree HEAD^ HEAD' '\n \tgit diff-tree --exit-code HEAD^ HEAD\n \ttest $? = 1\n-- \n1.7.0.rc2.40.g7d8aa\n"},{"id":"135247","messageId":"7vhbp924ej.fsf@alter.siamese.dyndns.org","threadId":"22743","inReplyTo":"1266807524-28487-1-git-send-email-larry@elder-gods.org","subject":"Re: [PATCH] git-diff: add a test for git diff --quiet -w","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-02-22T06:03:32Z","receivedAt":"2010-02-22T06:03:32Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}