File:Pre-commit.tar.gz

Script to run a set of patch checks, plus fix file permissions, automatically on git commit.

Runs checkpatch.pl and git diff --check before each commit. If any of these fails, the commit is aborted. Use the -n flag for git-commit to ignore the checks.

Changes permissons of c,h,cpp,txt,S,xml,mk files, as well as README,Kconfig,Kbuild,Makefile,HOWTO,TODO,README files to 0644. Sets permission of directories and scripts (e.g. py,pl,sh) to 0755.

TO INSTALL: extract under your git directory in your repository (normally /.git)