@@ -300,15 +300,14 @@ ifndef::git-format-patch[]
300300 with --exit-code.
301301
302302--ws-error-highlight=<kind>::
303- Highlight whitespace errors on lines specified by <kind>
304- in the color specified by `color.diff.whitespace`. <kind>
305- is a comma separated list of `old`, `new`, `context`. When
306- this option is not given, only whitespace errors in `new`
307- lines are highlighted. E.g. `--ws-error-highlight=new,old`
308- highlights whitespace errors on both deleted and added lines.
309- `all` can be used as a short-hand for `old,new,context`.
310- The `diff.wsErrorHighlight` configuration variable can be
311- used to specify the default behaviour.
303+ Highlight whitespace errors in the `context`, `old` or `new`
304+ lines of the diff. Multiple values are separated by comma,
305+ `none` resets previous values, `default` reset the list to
306+ `new` and `all` is a shorthand for `old,new,context`. When
307+ this option is not given, and the configuration variable
308+ `diff.wsErrorHighlight` is not set, only whitespace errors in
309+ `new` lines are highlighted. The whitespace errors are colored
310+ whith `color.diff.whitespace`.
312311
313312endif::git-format-patch[]
314313
0 commit comments