Skip to content

Instantly share code, notes, and snippets.

View Stevoisiak's full-sized avatar

Stevoisiak Stevoisiak

View GitHub Profile
@Stevoisiak
Stevoisiak / pre-commit
Last active April 3, 2017 23:03 — forked from benprew/pre-commit
Git pre-commit hook to prevent committing changes with common errors (trailing whitespace, tab/space mixing and conflict markers) from: http://git.xiph.org/speex.git/hooks/pre-commit
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by git-commit with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook, make this file executable.
# This is slightly modified from Andrew Morton's Perfect Patch.