diff options
author | Stefan Tauner <stefan.tauner@gmx.at> | 2017-10-12 02:46:00 +0200 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@gmx.at> | 2017-10-12 03:16:10 +0200 |
commit | 9fbbf55ecb991704cfbb2900ad9b41a1f7647759 (patch) | |
tree | 58c5f5f6f95c2dea49264ea0ac27a2a6650a808a /util/git-hooks/applypatch-msg | |
parent | 40ba6fd0486b9845a951dbe042b1121687353c1a (diff) | |
download | flashrom-9fbbf55ecb991704cfbb2900ad9b41a1f7647759.tar.gz flashrom-9fbbf55ecb991704cfbb2900ad9b41a1f7647759.tar.bz2 flashrom-9fbbf55ecb991704cfbb2900ad9b41a1f7647759.zip |
Convert flashrom to git
- Drop support for Subversion in the getrevision script and Makefile.
- Refinement of getrevision to have a single function determining the
new flashrom version string (based on git describe).
- Add .gitignore and .gitattributes file (the latter to limit exports).
- Restore modification dates of the exported files from the VCS.
- Stop exporting VCS log dumps to CHANGELOG. This makes no sense.
- Export VCS metadata needed by the Makefile to versioninfo.inc
- Do not export the pre-"compiled" manpage. It can be generated like
anything else from the code dump with versioninfo.inc
- Add some initial client-side git hooks that get installed automatically
on make runs:
* pre-commit:
- test for whitespace errors via git diff-index --check
* commit-msg:
- Use the up to date hook from gerrit to add Change-Id tags.
Unlike the upstream hook, add them to fixup/squash changes too
to allow for our staging process.
- Test for duplicate sign-offs/acks.
* When pushing to one of the upstream repositories check mandatory rules:
- existing signoffs and acks in all new commits
- no deletions of branches
- no new branches other than versioned branches (e.g., 0.0.x)
- no history rewriting of branches
- Various other small refinements, bikesheddings and cosmetic changes to
slow down progress of flashrom and humanity as a whole.
Original-Change-Id: I64eef21982cac0a0a7419bcd2c8a936672ae9cb2
Original-Reviewed-on: https://review.coreboot.org/19206
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Original-Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Change-Id: I325edb7d9890c412a44ecacb5161268d3dbccc57
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Signed-off-by: David Hendricks <dhendricks@fb.com>
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/21923
Acked-by: Stefan Tauner <stefan.tauner@gmx.at>
Diffstat (limited to 'util/git-hooks/applypatch-msg')
-rwxr-xr-x | util/git-hooks/applypatch-msg | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/util/git-hooks/applypatch-msg b/util/git-hooks/applypatch-msg new file mode 100755 index 000000000..32ff6c700 --- /dev/null +++ b/util/git-hooks/applypatch-msg @@ -0,0 +1,15 @@ +#!/bin/sh +# +# A hook script to check the commit log message taken by +# applypatch from an e-mail message (via git-am). +# We simply do the same as for other commit messages +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# + +. git-sh-setup +test -x "$GIT_DIR/hooks/commit-msg" && + exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} +: |