diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-10-26 13:14:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-26 13:14:43 -0700 |
commit | e5272d304af3528163cd5faa822f88086448ae57 (patch) | |
tree | 3790db42783219a328cfd83be301fbb3ee7eb0df /Documentation | |
parent | c334effa2332e30199451695b148f02eb7d9fd13 (diff) | |
parent | a17505f262b62e429bb0e188c5ed73ac749e25b8 (diff) | |
download | git-e5272d304af3528163cd5faa822f88086448ae57.tar.gz git-e5272d304af3528163cd5faa822f88086448ae57.tar.xz |
Merge branch 'jc/ws-error-highlight'
"git diff/log --ws-error-highlight=<kind>" lacked the corresponding
configuration variable to set it by default.
* jc/ws-error-highlight:
diff: introduce diff.wsErrorHighlight option
diff.c: move ws-error-highlight parsing helpers up
diff.c: refactor parse_ws_error_highlight()
t4015: split out the "setup" part of ws-error-highlight test
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/diff-config.txt | 6 | ||||
-rw-r--r-- | Documentation/diff-options.txt | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/diff-config.txt b/Documentation/diff-config.txt index b27a38f89..58f4bd6af 100644 --- a/Documentation/diff-config.txt +++ b/Documentation/diff-config.txt @@ -193,3 +193,9 @@ diff.algorithm:: low-occurrence common elements". -- + + +diff.wsErrorHighlight:: + A comma separated list of `old`, `new`, `context`, that + specifies how whitespace errors on lines are highlighted + with `color.diff.whitespace`. Can be overridden by the + command line option `--ws-error-highlight=<kind>` diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index 2d77a1962..29630c238 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -308,6 +308,8 @@ ifndef::git-format-patch[] lines are highlighted. E.g. `--ws-error-highlight=new,old` highlights whitespace errors on both deleted and added lines. `all` can be used as a short-hand for `old,new,context`. + The `diff.wsErrorHighlight` configuration variable can be + used to specify the default behaviour. endif::git-format-patch[] |