Skip to content

Instantly share code, notes, and snippets.

View saarmstrong's full-sized avatar

Andy Armstrong saarmstrong

View GitHub Profile
@saarmstrong
saarmstrong / pre-commit
Last active August 29, 2015 14:24 — forked from timsweb/pre-commit
#!/bin/sh
if git-rev-parse --verify HEAD >/dev/null 2>&1; then
against=HEAD
else
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
for FILE in `git diff --cached --name-only` ; do
# Check if the file contains 'debugger'