Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have my Git 'difftool' apply '--dir-diff' by default?

Is there a way to configure Git to always apply the --dir-diff option when executing

git difftool <commit> <commit>

For example, something logically equivalent to:

[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
like image 563
orome Avatar asked Feb 06 '15 14:02

orome


1 Answers

Not natively, but you can create a shell alias (depending on what OS you're running) to do that for you, so you'd assign for example gd as git difftool --dir-diff

like image 179
Serban Constantin Avatar answered Sep 22 '22 15:09

Serban Constantin