Skip to content

Instantly share code, notes, and snippets.

View plu's full-sized avatar
🏠
Working from home

Johannes Plunien plu

🏠
Working from home
  • Kleinanzeigen
  • Germany
View GitHub Profile
@plu
plu / pre-commit
Created November 21, 2012 12:16 — forked from cleichner/pre-commit
Pre-commit hook to check for NSLog statements in Objective-C repos
#!/bin/sh
# name this .git/hooks/pre-commit
# chmod +x .git/hooks/pre-commit
# enjoy
IFS=$'\n'
if git-rev-parse --verify HEAD >/dev/null 2>&1; then
against=HEAD
else