I am using git with –color-words to view my diff. In my diff, it shows that I removed
<b>{{ljcount}}</b> Changes
And that I added:
<b>{{skills_limits}}</b> Changes
This is larger than what I would like it to be (I want the word boundary to be at the {}). I tried playing around with --word-diff-regex, but I couldn’t find a regex to make it work. How can I achieve this result?
From
git help diff:The following expression will make a word be any string of characters and underscore, or any non-whitespace character.