Skip to content

Instantly share code, notes, and snippets.


Duncan Ogilvie mrexodia

Block or report user

Report or block mrexodia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Boerde /
Last active Aug 13, 2017 — forked from kblomqvist/
Git post-commit hook to check C/C++ source file format using astyle (Artistic Style) + automatic creation of a commit with a fix
# Installation:
# cd my_gitproject
# wget -O
# ln -s ../../ .git/hooks/pre-commit
# chmod +x
function have_uncommitted()
lines=$(git diff --name-only | wc -l)
You can’t perform that action at this time.