• /geek: Git Fu 3

    codingjester:

    Decided I needed a pre-commit hook for Tumblr while working on the main code base. The pre-commit hook below will automatically lint check all of your php files and bail out if you’re trying to commit broken code.

    #!/usr/bin/env bash
    git diff --cached --name-status | awk '{print $2}' | grep -e...