gitbeyondcomparegit-difftool

How to exit git difftool when using with Beyond Compare?


I have configured Beyond Compare as difftool.

When I run $ git difftool, it opens all the diff files in BC, but sequentially i.e. the first diff file opens, which I have to close so that the next one opens, and so on.

When the file count is too large, I need to keep repeating this for each file. Is there any way to -

  1. Quit the diff process midway and return to the $ prompt? OR
  2. Open all the diff files in BC in multiple tabs?
  3. Any other good ideas?

Solution

  • Use the parameter --dir-diff this will open up all changes in Bcompare at once. Additionally you can create an alias in your .gitconfig e.g.

    git config --global alias.bcompare 'difftool --dir-diff'

    then you save some console typing effort :-)