Documentation/diff: give --word-diff-regex=. example

It's just so useful. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Jeff King <peff@peff.net>

Michael J Gruber committed Nov 20, 2015 at 14:36 UTC 2c15c006511e03e775fa5f2e44b37ae9313833b0
1 file changed +3
Documentation/diff-options.txt
+3
@@ -267,6 +267,9 @@ expression to make sure that it matches all non-whitespace characters.
267 A match that contains a newline is silently truncated(!) at the
268 newline.
269 +
270 +For example, `--word-diff-regex=.` will treat each character as a word
271 +and, correspondingly, show differences character by character.
272 ++
273 The regex can also be set via a diff driver or configuration option, see
274 linkgit:gitattributes[1] or linkgit:git-config[1]. Giving it explicitly
275 overrides any diff driver or configuration setting. Diff drivers