I found ways to use opendiff for "git diff" but "git show" doesn't have quite the same options.
have "git show" use opendiff on osx to show commits
331 views Asked by vaebnkehn At
2
There are 2 answers
0
On
You can convince git diff to show you the difference between the last two commits using this bit of a hack:
COMMITS=$(git log --name-status HEAD^^..HEAD | grep "commit" | sed 's/commit/ /')
COMMITS=($COMMITS)
git diff ${COMMITS[1]} ${COMMITS[0]}
in which case git will use whatever editor you told it to use for git diff.
According to the man page,
git-showrunsgit diff-tree -ccbehind the scenes to produce the diff output. This probably bypasses yourgit-diffcustomizations.Try changing your .gitconfig to add the same options when you run
git-diffasgit-diff-tree.