git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Documentation: git diff --check respects core.whitespace

From
CKChristof Krüger <git@christof-krueger.de>
Date
Jun 22, 2011, 15:33 UTC
Message-ID
<1308756782-30241-1-git-send-email-git@christof-krueger.de>

Fix documentation on "git diff --check" by adopting the description from "git apply --whitespace".

Signed-off-by: Christof Krüger <git@christof-krueger.de>
---
 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 c7ed946..24f189f 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -224,10 +224,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::
-- 
1.7.6.rc2
Next: Sverre Rabbelier
Message 1 of 3 in “Documentation: git diff --check respects core.whitespace”
  1. Documentation: git diff --check respects core.whitespaceChristof Krüger, Jun 22, 2011
  2. Sverre RabbelierJun 22, 2011
  3. Junio C HamanoJun 22, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.