Skip to content

Instantly share code, notes, and snippets.

@atmin
atmin / meld-compare-refs.py
Last active December 29, 2015 10:49 — forked from mhl/meld-compare-refs.py
Compare git revisions via meld in a more sane way than `git difftool` Usage: meld-compare-refs.py rev1 rev2 e.g. meld-compare-refs.py HEAD HEAD~3
#!/usr/bin/python
# This fork works under Python 2.x
# This is script that extracts the trees of two commits to temporary
# directories and then runs meld on both directories, so you can compare
# them using meld's nice recursive browsing interface.
#
# This is for an answer to this question:
@atmin
atmin / fabfile.py
Last active December 16, 2015 08:08 — forked from ianpreston/fabfile.py
from fabric.api import local
import sys, os, webbrowser, jinja2
BASE_PATH = sys.path[0]
SRC_PATH = os.path.join(BASE_PATH, 'src')
BUILD_PATH = os.path.join(BASE_PATH, 'build')
JINJA_ENV = jinja2.Environment(loader=jinja2.FileSystemLoader(SRC_PATH))