Skip to content

Commit 2c15c00

Browse files
Michael J Gruberpeff
authored andcommitted
Documentation/diff: give --word-diff-regex=. example
It's just so useful. Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Jeff King <[email protected]>
1 parent 5cb2e16 commit 2c15c00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/diff-options.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ expression to make sure that it matches all non-whitespace characters.
267267
A match that contains a newline is silently truncated(!) at the
268268
newline.
269269
+
270+
For example, `--word-diff-regex=.` will treat each character as a word
271+
and, correspondingly, show differences character by character.
272+
+
270273
The regex can also be set via a diff driver or configuration option, see
271274
linkgit:gitattributes[1] or linkgit:git-config[1]. Giving it explicitly
272275
overrides any diff driver or configuration setting. Diff drivers

0 commit comments

Comments
 (0)