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
Boerde / githook-astyle.sh
Last active Aug 13, 2017 — forked from kblomqvist/githook-astyle.sh
Git post-commit hook to check C/C++ source file format using astyle (Artistic Style) + automatic creation of a commit with a fix
View githook-astyle.sh
#!/bin/bash
# Installation:
# cd my_gitproject
# wget -O pre-commit.sh http://tinyurl.com/mkovs45
# ln -s ../../pre-commit.sh .git/hooks/pre-commit
# chmod +x pre-commit.sh
function have_uncommitted()
{
lines=$(git diff --name-only | wc -l)
You can’t perform that action at this time.