Skip to contentSkip to conversation

Document commit.template configuration variable.

PATCH New Brian Gernhardt 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Document commit.template configuration variable.

Add it to the list in config.txt and explicitly say that the --template option to git-commit overrides the configuration variable.
---

d1cc130a5eb50d5bfe1e8b76cab3d8970fd70ad1 added a config var, but didn't add it to the full list.

 Documentation/config.txt     |    3 +++
 Documentation/git-commit.txt |    5 ++---
 2 files changed, 5 insertions(+), 3 deletions(-)
Documentation/config.txt +3 -0
index dd98d95..3135cb7 100644
@@ -393,6 +393,9 @@ color.status.<slot>::
 	or `untracked` (files which are not tracked by git). The values of
 	these variables may be specified as in color.branch.<slot>.
 
+commit.template::
+	Specify a file to use as the template for new commit messages.
+
 diff.renameLimit::
 	The number of files to consider when performing the copy/rename
 	detection; equivalent to the git diff option '-l'.
Documentation/git-commit.txt +2 -3
index 3f36c67..627994e 100644
@@ -78,9 +78,8 @@ OPTIONS
 	Use the contents of the given file as the initial version
 	of the commit message. The editor is invoked and you can
 	make subsequent changes. If a message is specified using
-	the `-m` or `-F` options, this option has no effect. The
-	template file may also be specified using the `commit.template`
-	configuration variable.
+	the `-m` or `-F` options, this option has no effect. This
+	overrides the `commit.template` configuration variable.
 
 -s|--signoff::
 	Add Signed-off-by line at the end of the commit message.
Signature · 1 line
1.5.3.rc2.38.g11308