diff options
author | Brian Gernhardt <benji@silverinsanity.com> | 2007-07-26 16:34:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-26 16:57:24 -0700 |
commit | 383e45cec40a0b881e59e44e011c410218ef476a (patch) | |
tree | b69143f7e8476a4d7fae721efb75aee1cc75e130 | |
parent | 654a7ccc56f5dee3d11fbf6e928c14402c7495de (diff) | |
download | git-383e45cec40a0b881e59e44e011c410218ef476a.tar.gz git-383e45cec40a0b881e59e44e011c410218ef476a.tar.xz |
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.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | Documentation/config.txt | 3 | ||||
-rw-r--r-- | Documentation/git-commit.txt | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index dd98d95d9..3135cb7a6 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -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'. diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt index 3f36c6782..627994eb9 100644 --- a/Documentation/git-commit.txt +++ b/Documentation/git-commit.txt @@ -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. |