Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/git/hooks/prepare-commit-msg
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
# PR: <If and which Problem Report is related.> | # PR: <If and which Problem Report is related.> | ||||
# Reported by: <If someone else reported the issue.> | # Reported by: <If someone else reported the issue.> | ||||
# Reviewed by: <If someone else reviewed your modification.> | # Reviewed by: <If someone else reviewed your modification.> | ||||
# Tested by: <If someone else tested the change.> | # Tested by: <If someone else tested the change.> | ||||
# Approved by: <If you needed approval for this commit.> | # Approved by: <If you needed approval for this commit.> | ||||
# Obtained from: <If the change is from a third party.> | # Obtained from: <If the change is from a third party.> | ||||
# Fixes: <Short hash and title line of commit fixed by this change> | # 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> | # 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.> | # Relnotes: <Set to 'yes' for mention in release notes.> | ||||
# Security: <Vulnerability reference (one per line) or description.> | # Security: <Vulnerability reference (one per line) or description.> | ||||
# Sponsored by: <If the change was sponsored by an organization.> | # Sponsored by: <If the change was sponsored by an organization.> | ||||
# Pull Request: <https://github.com/freebsd/<repo>/pull/###> | # Pull Request: <https://github.com/freebsd/<repo>/pull/###> | ||||
# Differential Revision: <https://reviews.freebsd.org/D###> | # Differential Revision: <https://reviews.freebsd.org/D###> | ||||
# | # | ||||
# "Pull Request" and "Differential Revision" require the *full* GitHub or | # "Pull Request" and "Differential Revision" require the *full* GitHub or | ||||
# Phabricator URL. The commit author should be set appropriately, using | # Phabricator URL. The commit author should be set appropriately, using | ||||
# \`git commit --author\` if someone besides the committer sent in the change. | # \`git commit --author\` if someone besides the committer sent in the change. | ||||
$(awk '/^#$/,EOF' "$1") | $(awk '/^#$/,EOF' "$1") | ||||
EOF | EOF | ||||
mv "$outfile" "$1" | mv "$outfile" "$1" |