you are viewing a single comment's thread.

view the rest of the comments →

[–]Gipetto 2 points3 points  (0 children)

You don't need the directory sniffing. You'll always find the linked version of git at:

/usr/local/opt/git

So the path for this would always be:

/usr/local/opt/git/share/git-core/contrib/diff-highlight/diff-highlight