Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Dec 2020 20:31:45 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368740 - head/tools/tools/git/hooks
Message-ID:  <202012172031.0BHKVjUX002745@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Dec 17 20:31:45 2020
New Revision: 368740
URL: https://svnweb.freebsd.org/changeset/base/368740

Log:
  Describe the commit message template our git hook script produces
  
  Reported by:	rpokala

Modified:
  head/tools/tools/git/hooks/prepare-commit-msg

Modified: head/tools/tools/git/hooks/prepare-commit-msg
==============================================================================
--- head/tools/tools/git/hooks/prepare-commit-msg	Thu Dec 17 20:31:17 2020	(r368739)
+++ head/tools/tools/git/hooks/prepare-commit-msg	Thu Dec 17 20:31:45 2020	(r368740)
@@ -16,8 +16,17 @@ merge)
 esac
 
 outfile=$(mktemp /tmp/freebsd-git-commit.XXXXXXXX)
-cat >$outfile <<EOF
 
+# Create a commit message template from three parts:
+#
+# 1. The beginning of the git-provided template (up to the first comment-only
+#    line) which explains commented lines and such.
+# 2. Our template.
+# 3. The remainder of the git-provided template (from the first comment-only
+#    line to the end of the file) which lists files staged for commit, files
+#    not staged, and untracked files.
+
+cat >$outfile <<EOF
 $(awk '1;/^#$/{exit}' $1)
 # Uncomment and complete these metadata fields, as appropriate:
 # 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012172031.0BHKVjUX002745>