Diff all files with git difftool command

I’ve been using git for work lately and became frustrated with the behavior of the git difftool command when trying to view changes. The default behavior is that each individually modified file will be passed to your difftool of choice and the next file will not be presented to you until closing the tool. I use beyond compare as my merge and diff tool and was used to having all modified, added, or deleted files showing up inside beyond compare so that I could freely bounce around tabs and view the entire changeset. I stumbled upon this blog post which almost had the behavior I wanted but only parses for modified files which means added, deleted, or moved files are missed. I’ve aliased the below batch script gda in my dotfiles which has come in handy the past few weeks!

Leave a Reply

Your email address will not be published. Required fields are marked *