File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -224,10 +224,14 @@ endif::git-format-patch[]
224
224
225
225
ifndef::git-format-patch[]
226
226
--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.
231
235
endif::git-format-patch[]
232
236
233
237
--full-index::
You can’t perform that action at this time.
0 commit comments