Skip to content

Instantly share code, notes, and snippets.

View ajmirsky's full-sized avatar

Andrew Mirsky ajmirsky

View GitHub Profile
@ajmirsky
ajmirsky / post-commit
Created September 27, 2011 13:56
post-commit hook for tagging a release version
#!/usr/bin/python
# place in .git/hooks/post-commit
import commands, re
print "checking for version change...",
status, output = commands.getstatusoutput('git diff HEAD HEAD^ -U0')