Skip to content

Instantly share code, notes, and snippets.

@davglass
Created June 2, 2009 18:56
Show Gist options
  • Save davglass/122495 to your computer and use it in GitHub Desktop.
Save davglass/122495 to your computer and use it in GitHub Desktop.
#!/bin/sh
#Add to git config, must be full path..
#[diff]
# external = "/Users/davglass/.bin/gitdiff.sh"
# diff is called by git with 7 parameters:
# path old-file old-hex old-mode new-file new-hex new-mode
# Assuming that you are using MacVim
"/Applications/mvim" "-d" "$2" "$5" | cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment