scripts: add checkpatch.pl & git hooks
Change-Id: I29e5f7a99e8dd92511c0b1d099f3e1a2f37d7a72
This commit is contained in:
committed by
Dominique Martinet
parent
9bb8076dc0
commit
e770a22fa5
12
scripts/git_hooks/install_git_hooks.sh
Executable file
12
scripts/git_hooks/install_git_hooks.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
CURDIR=$(dirname "$(readlink -m "$0")")
|
||||
TOPDIR=$(git rev-parse --show-toplevel)
|
||||
HOOKDIR=$TOPDIR/.git/hooks
|
||||
|
||||
cp -f "$CURDIR/pre-commit" "$HOOKDIR"
|
||||
chmod +x "$HOOKDIR/pre-commit"
|
||||
|
||||
cp -f "$CURDIR/commit-msg" "$HOOKDIR"
|
||||
chmod +x "$HOOKDIR/commit-msg"
|
||||
|
||||
Reference in New Issue
Block a user