diff options
author | Christof Krüger <git@christof-krueger.de> | 2011-06-22 19:33:02 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-22 22:40:32 +0400 |
commit | 4f8303905eafaa04fd08a20a08a81436aea2d4b9 (patch) | |
tree | edc0c9bfdfe3ad7361eadeb8076655dcf6e2b064 /Documentation | |
parent | a598ded1e2e9cc9f4ce93d091808b475839e6867 (diff) |
Documentation: git diff --check respects core.whitespace
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/diff-options.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 80fd817c28..96e0a581a1 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -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:: |