Skip to content

Instantly share code, notes, and snippets.

@Symbolk
Last active August 15, 2019 11:35
Show Gist options
  • Save Symbolk/e54d1ba34c7ac08606a5061edccfd2da to your computer and use it in GitHub Desktop.
Save Symbolk/e54d1ba34c7ac08606a5061edccfd2da to your computer and use it in GitHub Desktop.
Git custom sub-command to diff with Meld
#!/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