Package Link to heading
Find the location of your diff-highlight
package:
pacman -Ql git | grep diff-highlight
dpkg -L git | grep diff-highlight
rpm -ql git | grep diff-highlight
Configure Link to heading
Edit your ~/.gitconfig
to contain this section:
[pager]
log = perl /usr/share/git/diff-highlight/diff-highlight | less
show = perl /usr/share/git/diff-highlight/diff-highlight | less
diff = perl /usr/share/git/diff-highlight/diff-highlight | less
Usage Link to heading
Now your git diff
will highlight individual changes.
Future Link to heading
All we have to do now is wait until git will have the diff highlight properly implemented as a flag or config option instead of having it written in an obsolete and slow programming language.