Document --check option to git diff.
authorBill Lear <rael@zopyra.com>
Sat, 27 Jan 2007 13:21:53 +0000 (07:21 -0600)
committerJunio C Hamano <junkio@cox.net>
Sat, 27 Jan 2007 21:46:59 +0000 (13:46 -0800)
Signed-off-by: Bill Lear <rael@zopyra.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/SubmittingPatches
Documentation/diff-options.txt
index 41b76d8a4ac7da2d21900ced420051b573fff768..ce85d06c6214d6757c44119fe2d04ec15f6054ad 100644 (file)
@@ -23,7 +23,8 @@ probably need to split up your commit to finer grained pieces.
 
 Oh, another thing.  I am picky about whitespaces.  Make sure your
 changes do not trigger errors with the sample pre-commit hook shipped
 
 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.
 
 
 (2) Generate your patch using git tools out of your commits.
index da1cc60e970027bec50c484e1db5717ec90eb150..019a39f2bf7253f3938d87a21a5467e37e33a2e0 100644 (file)
        Turn off rename detection, even when the configuration
        file gives the default to do so.
 
        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"
 --full-index::
        Instead of the first handful characters, show full
        object name of pre- and post-image blob on the "index"