Skip to content

Commit def9803

Browse files
committed
Merge branch 'maint'
* maint: Documentation: git diff --check respects core.whitespace
2 parents 2765233 + 4f83039 commit def9803

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Documentation/diff-options.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,14 @@ endif::git-format-patch[]
224224

225225
ifndef::git-format-patch[]
226226
--check::
227-
Warn if changes introduce trailing whitespace
228-
or an indent that uses a space before a tab. Exits with
229-
non-zero status if problems are found. Not compatible with
230-
--exit-code.
227+
Warn if changes introduce whitespace errors. What are
228+
considered whitespace errors is controlled by `core.whitespace`
229+
configuration. By default, trailing whitespaces (including
230+
lines that solely consist of whitespaces) and a space character
231+
that is immediately followed by a tab character inside the
232+
initial indent of the line are considered whitespace errors.
233+
Exits with non-zero status if problems are found. Not compatible
234+
with --exit-code.
231235
endif::git-format-patch[]
232236

233237
--full-index::

0 commit comments

Comments
 (0)