Can I use <diff> 'default' -dir-diff 'by default?

Is there a way to configure Git to always use the --dir-diff option when running

 git difftool <commit> <commit> 

For example, something logically equivalent:

 [diff] #tool = p4merge tool = araxis [difftool] prompt = false dirdiff = true # Is there something equivalent to this? [mergetool "araxis"] path = /Applications/Araxis Merge.app/Contents/Utilities/compare 
+7
git git-diff git-config
source share
1 answer

Not initially, but you can create a shell alias (depending on which OS you are using) for this, so you should assign, for example, gd as git difftool --dir-diff

+7
source share

All Articles