This website requires JavaScript.
Explore
Help
Register
Sign In
GNUBoot
/
coreboot-kgpe-d16
Watch
2
Star
0
Fork
You've already forked coreboot-kgpe-d16
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
dd78aa665a
coreboot-kgpe-d16
/
util
/
gitconfig
/
pre-commit
4 lines
91 B
Plaintext
Raw
Normal View
History
Unescape
Escape
gitconfig: Add lint-stable as pre-commit hook When configuring the tree with "make gitconfig", a pre-commit hook is installed that runs the stable lint tests. If any of these fail, the log is visible (on stdout) and the commit is aborted. Change-Id: Ie2a26e87f466c63b24db8dca8827057a18ac7f3e Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/682 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2012-02-25 19:52:45 +01:00
#!/bin/sh
lint/gitconfig: Enable checkpatch.pl checking of commits This patch enables running the checkpatch script on the code portion of each commit as part of the pre-commit hook. At this point there is no checking of the commit message in place (e.g. for typos) Change-Id: I7cdf0692cf372986e411f4aba4691417b73c7511 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/8419 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
2015-02-11 01:53:42 +01:00
%MAKE% lint-stable
git diff --cached | util/lint/checkpatch.pl --no-signoff -q -