Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rcpao-enmotus
rcpao-enmotus / bdiff.py
Last active October 9, 2019 20:54 — forked from jacobabrahamb4/bdiff.py
Display diff between two commits.
#!/usr/bin/env python
import sys, subprocess, os
TOOLS = ['bcompare', 'meld']
HEAD = 'HEAD'
TMP = '/tmp/'
execute = lambda command: subprocess.check_output(command)
which = lambda tool: execute(['which', tool]).strip()