Skip to content

Instantly share code, notes, and snippets.

@cad-san
Last active August 29, 2015 13:57
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 cad-san/9727139 to your computer and use it in GitHub Desktop.
Save cad-san/9727139 to your computer and use it in GitHub Desktop.
git diff tool that use winmerge
[difftool "DiffScript"]
path = ~/bin/difftool.sh
cmd = "~/bin/difftool.sh \"$LOCAL\" \"$REMOTE\""
#!/bin/sh
echo Viewing: \"$2\"
if [ -e $1 -a -e $2 ]
then
"path/to/WinMergeU.exe" -e -r -u -wl -dl "Base" -dr "Mine" "$(cygpath -aw "$1")" "$(cygpath -aw "$2")"
else
echo "skipping as one file doesn't exist"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment