color-words: Support diff.wordregex config option
commit98a4d87b87e9846eafd21ba232cc2b7ba3f718fc
authorBoyd Stephen Smith Jr <bss@iguanasuicide.net>
Wed, 21 Jan 2009 03:46:57 +0000 (20 21:46 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jan 2009 08:51:12 +0000 (21 00:51 -0800)
tree801c8a827250699199969198c34878714fb65617
parent80c49c3de2d5a3aa12b0980a65f1163c8aef0c16
color-words: Support diff.wordregex config option

When diff is invoked with --color-words (w/o =regex), use the regular
expression the user has configured as diff.wordregex.

diff drivers configured via attributes take precedence over the
diff.wordregex-words setting.  If the user wants to change them, they have
their own configuration variables.

Signed-off-by: Boyd Stephen Smith Jr <bss@iguanasuicide.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/diff-options.txt
diff.c
t/t4034-diff-words.sh