Thursday, May 9, 2019

git diff difftool

Git does allow you to configure suppression of the confirmation per-diffed file:

git config --global --add difftool.prompt false

The caveat is that a large number of diffed files will result in a long sequence of closing the , reopening , etc for each (this assumes that the above is significantly worse than having to hit n repeatedly during default behaviour — you can always interrupt the process by hitting Ctrl+C on the terminal, regardless).

All in all, this config change is still useful for single file diffs. For broad diffs I will stick to Aaron's suggestion of performing diff by folder and opening that:

git difftool --dir-diff



https://www.scootersoftware.com/vbulletin/forum/beyond-compare-4-discussion/version-control-aa/12475-usability-skip-git-difftool-confirmation-prompt-and-or-enable-multi-tab-opening