Skip to content

Instantly share code, notes, and snippets.

@cblanc
Created August 21, 2014 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cblanc/0d450af1bd7158053716 to your computer and use it in GitHub Desktop.
Save cblanc/0d450af1bd7158053716 to your computer and use it in GitHub Desktop.
Diff All Files
#!/bin/sh
git diff --name-only "$@" | while read filename; do
git difftool "$@" --no-prompt "$filename" &
done
# Credit: http://blog.codefarm.co.nz/2009/08/git-diff-and-difftool-open-all-files.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment