Skip to content

Instantly share code, notes, and snippets.

@vilasmaciel
Last active August 29, 2015 14:11
Show Gist options
  • Save vilasmaciel/b35e4f9bea33b02a1bc2 to your computer and use it in GitHub Desktop.
Save vilasmaciel/b35e4f9bea33b02a1bc2 to your computer and use it in GitHub Desktop.
Meld diff script to use with git
#!/usr/bin/python
import sys
import os
os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5]))
# git config --global diff.external /path/to/diff.py
@vilasmaciel
Copy link
Author

sudo apt-get install meld
git config --global diff.external
git config --global diff.external <path_to_file>/diff.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment