Skip to content

Commit

Permalink
git-commit.txt: clarify -t requires editing message
Browse files Browse the repository at this point in the history
Make it clear that, when using commit --template, the message *must* be
changed or the commit will be aborted.

Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Ivan Heffner <iheffner@gmail.com>
Signed-off-by: Adam Monsen <haircut@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Adam Monsen authored and Junio C Hamano committed Apr 1, 2012
1 parent b2eda9b commit b0ad5e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Documentation/git-commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ OPTIONS

-t <file>::
--template=<file>::
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. This
overrides the `commit.template` configuration variable.
Use the contents of the given file as the initial version of the
commit message. The editor is invoked so you can make subsequent
changes. If you make no changes, the commit is aborted. If a message
is specified using the `-m` or `-F` options, this option has no
effect. This overrides the `commit.template` configuration variable.

-s::
--signoff::
Expand Down

0 comments on commit b0ad5e2

Please sign in to comment.