# [PATCH] Document --check option to git diff.

3 messages from 2007-01-27 to 2007-01-27. Participants: Bill Lear, Junio C Hamano.
Thread: https://gitlist.dev/t/6564

## Bill Lear, 2007-01-27 13:21

Subject: [PATCH] Document --check option to git diff.
Message-ID: <11699041133940-git-send-email-rael@zopyra.com>
URL: https://gitlist.dev/e/11699041133940-git-send-email-rael%40zopyra.com

```

Signed-off-by: Bill Lear <rael@zopyra.com>
---
 Documentation/SubmittingPatches |    3 ++-
 Documentation/diff-options.txt  |    4 ++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index 41b76d8..ce85d06 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -23,7 +23,8 @@ probably need to split up your commit to
 
 Oh, another thing.  I am picky about whitespaces.  Make sure your
 changes do not trigger errors with the sample pre-commit hook shipped
-in templates/hooks--pre-commit.
+in templates/hooks--pre-commit.  To help ensure this does not happen,
+run git diff --check on your changes before you commit.
 
 
 (2) Generate your patch using git tools out of your commits.
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index da1cc60..019a39f 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -58,6 +58,10 @@
 	Turn off rename detection, even when the configuration
 	file gives the default to do so.
 
+--check::
+	Warn if changes introduce trailing whitespace
+	or an indent that uses a space before a tab.
+
 --full-index::
 	Instead of the first handful characters, show full
 	object name of pre- and post-image blob on the "index"
-- 
1.4.4.1

```

## Bill Lear, 2007-01-27 13:25

Subject: Re: [PATCH] Document --check option to git diff.
Message-ID: <17851.21210.252643.814655@lisa.zopyra.com>
URL: https://gitlist.dev/e/17851.21210.252643.814655%40lisa.zopyra.com
In-Reply-To: <11699041133940-git-send-email-rael@zopyra.com>

```
On Saturday, January 27, 2007 at 07:21:53 (-0600) Bill Lear writes:
>
>Signed-off-by: Bill Lear <rael@zopyra.com>
>---
> Documentation/SubmittingPatches |    3 ++-
> Documentation/diff-options.txt  |    4 ++++
> 2 files changed, 6 insertions(+), 1 deletions(-)
>...

Note that this does not have the change to git-diff.txt.  I felt
adding the example of --check was unnecessary.


Bill

```

## Junio C Hamano, 2007-01-27 22:00

Subject: Re: [PATCH] Document --check option to git diff.
Message-ID: <7vbqkki0yz.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vbqkki0yz.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <11699041133940-git-send-email-rael@zopyra.com>

```
Thanks.

```
