Skip to content

Commit

Permalink
Document commit.template configuration variable.
Browse files Browse the repository at this point in the history
Add it to the list in config.txt and explicitly say that the
--template option to git-commit overrides the configuration variable.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Brian Gernhardt authored and Junio C Hamano committed Jul 26, 2007
1 parent 654a7cc commit 383e45c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down
5 changes: 2 additions & 3 deletions Documentation/git-commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 383e45c

Please sign in to comment.