Skip to content

Instantly share code, notes, and snippets.

@KuiKui
KuiKui / pre-commit.sh
Last active May 26, 2016 10:23 — forked from JJK801/pre-commit.sh
Git Pre-Commit hook for coding standards validation
#!/bin/bash
#--------------------------------------------------------------------------------------------------
# WARNING : due to a 'git stash save -u' command, check your .gitignore file before using this hook
# -> http://blog.icefusion.co.uk/git-stash-can-delete-ignored-files-git-stash-u/
#--------------------------------------------------------------------------------------------------
binary="coke"
file=".coke"
files=""