From 9772400dd156be582f591a6b9c3d6555f846e841 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Tue, 18 Sep 2012 11:30:27 -0400 Subject: [PATCH] Remove GLC --- get-last-commit-url.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 get-last-commit-url.py diff --git a/get-last-commit-url.py b/get-last-commit-url.py deleted file mode 100755 index 4beb8d3..0000000 --- a/get-last-commit-url.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -# Requirements -# pip install pyquery requests -# PyQuery: http://pypi.python.org/pypi/pyquery -# Requests: http://docs.python-requests.org/en/latest/index.html - -import subprocess, sys - - -def main(): - - output = subprocess.check_output('git log --no-merges -1 --pretty=oneline', shell=True) - - hash, title = output.split(' ', 1) - - try: - from fabric.colors import blue - sys.stderr.write(blue(title)) - except ImportError: - sys.stderr.write('%s' % title) - - sys.stdout.write('https://github.com/nicksergeant/snipt/commit/%s' % hash) - -if __name__ == '__main__': - main()