Looks like you’re looking for the --ext-diff
option.
Here’s what git show
docs say about it:
–ext-diff
Allow an external diff helper to be executed. If you set an external diff driver with
gitattributes
, you need to use this option withgit-log
and friends.