Skip to content

Instantly share code, notes, and snippets.

View nebulous's full-sized avatar

nebulous

View GitHub Profile
@slindberg
slindberg / pre-commit.sh
Created May 27, 2011 20:52
Git Pre-commit Hook
#!/bin/sh
#
# Pre-commit Hook
#
# Searches for black-listed strings in the commit and exits with an
# error if found, printing a diff of the location of the offending string
#
STATUS=0;
BLACKLIST="error_log