]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: git diff --check respects core.whitespace
authorChristof Krüger <git@christof-krueger.de>
Wed, 22 Jun 2011 15:33:02 +0000 (17:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jun 2011 18:40:32 +0000 (11:40 -0700)
Fix documentation on "git diff --check" by adopting the description from
"git apply --whitespace".

Signed-off-by: Christof Krüger <git@christof-krueger.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt

index 80fd817c28029d1b13e21b6c80da20b564ce9e42..96e0a581a1206ff7c258c8f9e7235d16972d584e 100644 (file)
@@ -194,10 +194,14 @@ endif::git-format-patch[]
 
 ifndef::git-format-patch[]
 --check::
-       Warn if changes introduce trailing whitespace
-       or an indent that uses a space before a tab. Exits with
-       non-zero status if problems are found. Not compatible with
-       --exit-code.
+       Warn if changes introduce whitespace errors.  What are
+       considered whitespace errors is controlled by `core.whitespace`
+       configuration.  By default, trailing whitespaces (including
+       lines that solely consist of whitespaces) and a space character
+       that is immediately followed by a tab character inside the
+       initial indent of the line are considered whitespace errors.
+       Exits with non-zero status if problems are found. Not compatible
+       with --exit-code.
 endif::git-format-patch[]
 
 --full-index::