aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2021-04-22 09:47:14 +0000
committerMathieu Arnold <mat@FreeBSD.org>2021-04-22 09:50:30 +0000
commit5b7c17856512900d2a13be547869b734a527a57b (patch)
treea5dea71bf248bd70a15881e0a2801dbef667261d
parent37dfa4eeea6de2ae698ca8bb0023835c9f28f7b9 (diff)
downloadports-5b7c17856512900d2a13be547869b734a527a57b.tar.gz
ports-5b7c17856512900d2a13be547869b734a527a57b.zip
git hooks: Rework authorship instructions.
While there, move them upwards so they are not hidden at the far end of the template.
-rwxr-xr-x.hooks/prepare-commit-msg6
1 files changed, 4 insertions, 2 deletions
diff --git a/.hooks/prepare-commit-msg b/.hooks/prepare-commit-msg
index e4e94960988e..12f26c74d0b6 100755
--- a/.hooks/prepare-commit-msg
+++ b/.hooks/prepare-commit-msg
@@ -44,6 +44,9 @@ $(awk '1;/^#$/{exit}' "$1")
# <then a blank line>
# 72 columns --|
#
+# Do not add a Submitted by line. If someone besides the committer sent in the
+# change, the commit author should be set using \`git commit --author\`.
+#
# Uncomment and complete these metadata fields, as appropriate:
#
# PR: <If and which Problem Report is related.>
@@ -61,8 +64,7 @@ $(awk '1;/^#$/{exit}' "$1")
# Differential Revision: <https://reviews.freebsd.org/D###>
#
# "Pull Request" and "Differential Revision" require the *full* GitHub or
-# Phabricator URL. The commit author should be set appropriately, using
-# \`git commit --author\` if someone besides the committer sent in the change.
+# Phabricator URL.
$(awk '/^#$/,EOF' "$1")
EOF