@matheusbsbs / matheus-bagliano / commits / 16507fcf0a
Fork 0

Document --check option to git diff.

Signed-off-by: Bill Lear <rael@zopyra.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Bill Lear committed Jan 27, 2007 at 07:21 UTC 16507fcf0a9991976815972faa253d77804d6f35
2 files changed +6 -1
Documentation/SubmittingPatches
+2 -1
@@ -23,7 +23,8 @@ probably need to split up your commit to finer grained pieces.
23
24 Oh, another thing. I am picky about whitespaces. Make sure your
25 changes do not trigger errors with the sample pre-commit hook shipped
26 -in templates/hooks--pre-commit.
26 +in templates/hooks--pre-commit. To help ensure this does not happen,
27 +run git diff --check on your changes before you commit.
28
29
30 (2) Generate your patch using git tools out of your commits.
Documentation/diff-options.txt
+4
@@ -58,6 +58,10 @@
58 Turn off rename detection, even when the configuration
59 file gives the default to do so.
60
61 +--check::
62 + Warn if changes introduce trailing whitespace
63 + or an indent that uses a space before a tab.
64 +
65 --full-index::
66 Instead of the first handful characters, show full
67 object name of pre- and post-image blob on the "index"