Page MenuHomeFreeBSD

D27633.id80767.diff
No OneTemporary

D27633.id80767.diff

Index: tools/tools/git/hooks/prepare-commit-msg
===================================================================
--- /dev/null
+++ tools/tools/git/hooks/prepare-commit-msg
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# It takes one to three parameters. The first is the name of the file
+# that contains the commit log message. The second is the source of the
+# commit message, and can be: message (if a -m or -F option was given);
+# template (if a -t option was given or the configuration option
+# commit.template is set); merge (if the commit is a merge or a
+# .git/MERGE_MSG file exists); squash (if a .git/SQUASH_MSG file exists);
+# or commit, followed by a commit SHA-1 (if a -c, -C or --amend option
+# was given).
+
+case "$2" in
+commit:
+ return 0
+esac
+
+cat >"$1" <<EOF
+
+# Uncomment and complete these metadata fields, as appropriate:
+#
+# PR:
+# Submitted by:
+# Reported by:
+# Reviewed by:
+# Approved by:
+# Obtained from:
+# MFC after:
+# MFH:
+# Relnotes:
+# Security:
+# Sponsored by:
+# Pull Request:
+# Differential Revision:
+#
+# Description of fields to fill in above: 76 columns --|
+# PR: If and which Problem Report is related.
+# Submitted by: If someone else sent in the change.
+# Reported by: If someone else reported the issue.
+# Reviewed by: If someone else reviewed your modification.
+# Approved by: If you needed approval for this commit.
+# Obtained from: If the change is from a third party.
+# 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.
+# Security: Vulnerability reference (one per line) or description.
+# Sponsored by: If the change was sponsored by an organization.
+# Pull Request: https://github.com/freebsd/freebsd/pull/### (*full* GitHub URL needed).
+# Differential Revision: https://reviews.freebsd.org/D### (*full* phabric URL needed).
+# Empty fields above will be automatically removed."
+EOF

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 12, 12:15 AM (13 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31317001
Default Alt Text
D27633.id80767.diff (2 KB)

Event Timeline