diff options
author | Ed Maste <emaste@FreeBSD.org> | 2021-02-20 18:49:31 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-12-16 01:00:26 +0000 |
commit | 19f7fb2ec7316d37478c0e2d5dd345f2879f4c3c (patch) | |
tree | 67723af0d5bfb7dbc320aff0ec04c132dd92e3ec /tools | |
parent | 9fc9a302178ea3f60f18e963236ae31a82e001db (diff) | |
download | src-19f7fb2ec7316d37478c0e2d5dd345f2879f4c3c.tar.gz src-19f7fb2ec7316d37478c0e2d5dd345f2879f4c3c.zip |
git hooks: add "Fixes" trailer to commit message template
A number of projects use "Fixes: <hash>" to identify a commit that is
fixed by a given change. Adopt that convention.
Differential Revision: https://reviews.freebsd.org/D28693
(cherry picked from commit aa8ae5fe17eb380b0f30f1641f17a0b3d83a68c3)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/tools/git/hooks/prepare-commit-msg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tools/git/hooks/prepare-commit-msg b/tools/tools/git/hooks/prepare-commit-msg index 6a8db33649f0..9d85b205d968 100755 --- a/tools/tools/git/hooks/prepare-commit-msg +++ b/tools/tools/git/hooks/prepare-commit-msg @@ -48,6 +48,7 @@ $(awk '1;/^#$/{exit}' $1) # Tested by: <If someone else tested the change.> # Approved by: <If you needed approval for this commit.> # Obtained from: <If the change is from a third party.> +# Fixes: <Short hash and title line of commit fixed by this change> # MFC after: <N [day[s]|week[s]|month[s]]. Request a reminder email> # MFH: <Ports tree branch name. Request approval for merge.> # Relnotes: <Set to 'yes' for mention in release notes.> |