Because git
is designed for source code, its default diff
algorithm treats a line as the minimum indivisible unit.
I am trying to edit some mar
Here is an example of customising this (from this question). As a default, --word-diff assumes a word to be a string of non-whitespace characters. The following command will consider a word consist of one of the following:
The command:
git diff --color-words --word-diff-regex='[A-z0-9_]+|[^[:space:]]'