I am using git with --color-words to view my diff. In my diff, it shows that I removed
{{ljcount}} Changes
<
Since you already use --color-words
, you don't need to supply --word-diff-regex
separately, the first option accepts a regex:
--color-words[=
] Equivalent to
--word-diff=color
plus--word-diff-regex=
(if a regex was specified).
A regex that works particularly well for me is:
$ git diff --color-words='\w+|.'