{"thread":{"id":"6564","subject":"[PATCH] Document --check option to git diff.","startedAt":"2007-01-27T13:21:53Z","lastAt":"2007-01-27T22:00:52Z","messageCount":3,"participants":["Bill Lear","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"32834","messageId":"11699041133940-git-send-email-rael@zopyra.com","threadId":"6564","inReplyTo":null,"subject":"[PATCH] Document --check option to git diff.","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-01-27T13:21:53Z","receivedAt":"2007-01-27T13:21:53Z","isPatch":true,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"\nSigned-off-by: Bill Lear <rael@zopyra.com>\n---\n Documentation/SubmittingPatches |    3 ++-\n Documentation/diff-options.txt  |    4 ++++\n 2 files changed, 6 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches\nindex 41b76d8..ce85d06 100644\n--- a/Documentation/SubmittingPatches\n+++ b/Documentation/SubmittingPatches\n@@ -23,7 +23,8 @@ probably need to split up your commit to\n \n Oh, another thing.  I am picky about whitespaces.  Make sure your\n changes do not trigger errors with the sample pre-commit hook shipped\n-in templates/hooks--pre-commit.\n+in templates/hooks--pre-commit.  To help ensure this does not happen,\n+run git diff --check on your changes before you commit.\n \n \n (2) Generate your patch using git tools out of your commits.\ndiff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt\nindex da1cc60..019a39f 100644\n--- a/Documentation/diff-options.txt\n+++ b/Documentation/diff-options.txt\n@@ -58,6 +58,10 @@\n \tTurn off rename detection, even when the configuration\n \tfile gives the default to do so.\n \n+--check::\n+\tWarn if changes introduce trailing whitespace\n+\tor an indent that uses a space before a tab.\n+\n --full-index::\n \tInstead of the first handful characters, show full\n \tobject name of pre- and post-image blob on the \"index\"\n-- \n1.4.4.1\n"},{"id":"32835","messageId":"17851.21210.252643.814655@lisa.zopyra.com","threadId":"6564","inReplyTo":"11699041133940-git-send-email-rael@zopyra.com","subject":"Re: [PATCH] Document --check option to git diff.","fromName":"Bill Lear","fromEmail":"rael@zopyra.com","sentAt":"2007-01-27T13:25:46Z","receivedAt":"2007-01-27T13:25:46Z","isPatch":true,"sender":{"key":"rael@zopyra.com","avatar":"https://gravatar.com/avatar/c4f2d2790ca3828d3b4e7dfebabf61d2fe94fd82fa49cdac2a5295dd2d46a874?d=mp&s=160"},"body":"On Saturday, January 27, 2007 at 07:21:53 (-0600) Bill Lear writes:\n>\n>Signed-off-by: Bill Lear <rael@zopyra.com>\n>---\n> Documentation/SubmittingPatches |    3 ++-\n> Documentation/diff-options.txt  |    4 ++++\n> 2 files changed, 6 insertions(+), 1 deletions(-)\n>...\n\nNote that this does not have the change to git-diff.txt.  I felt\nadding the example of --check was unnecessary.\n\n\nBill\n"},{"id":"32878","messageId":"7vbqkki0yz.fsf@assigned-by-dhcp.cox.net","threadId":"6564","inReplyTo":"11699041133940-git-send-email-rael@zopyra.com","subject":"Re: [PATCH] Document --check option to git diff.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-01-27T22:00:52Z","receivedAt":"2007-01-27T22:00:52Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}