Skip to content

Commit b0ad5e2

Browse files
meonkeysgitster
authored andcommitted
git-commit.txt: clarify -t requires editing message
Make it clear that, when using commit --template, the message *must* be changed or the commit will be aborted. Helped-by: Junio C Hamano <[email protected]> Helped-by: Ivan Heffner <[email protected]> Signed-off-by: Adam Monsen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b2eda9b commit b0ad5e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/git-commit.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ OPTIONS
132132

133133
-t <file>::
134134
--template=<file>::
135-
Use the contents of the given file as the initial version
136-
of the commit message. The editor is invoked and you can
137-
make subsequent changes. If a message is specified using
138-
the `-m` or `-F` options, this option has no effect. This
139-
overrides the `commit.template` configuration variable.
135+
Use the contents of the given file as the initial version of the
136+
commit message. The editor is invoked so you can make subsequent
137+
changes. If you make no changes, the commit is aborted. If a message
138+
is specified using the `-m` or `-F` options, this option has no
139+
effect. This overrides the `commit.template` configuration variable.
140140

141141
-s::
142142
--signoff::

0 commit comments

Comments
 (0)