Last active
August 15, 2019 11:35
-
-
Save Symbolk/e54d1ba34c7ac08606a5061edccfd2da to your computer and use it in GitHub Desktop.
Git custom sub-command to diff with Meld
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess | |
import sys | |
binaryPath = "meld" | |
left = str(sys.argv[1]) | |
side = str(sys.argv[2]) | |
right = left.replace('base', side) | |
print(left) | |
print(right) | |
subprocess.call([binaryPath, left, right]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment