Skip to content

Commit f17adbc

Browse files
committed
Merge branch 'jk/maint-commit-document-editmsg' into maint
"$GIT_DIR/COMMIT_EDITMSG" file that is used to hold the commit log message user edits was not documented. * jk/maint-commit-document-editmsg: commit: document the temporary commit message file
2 parents 5c992a1 + 41f597d commit f17adbc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Documentation/git-commit.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,15 @@ This command can run `commit-msg`, `prepare-commit-msg`, `pre-commit`,
399399
and `post-commit` hooks. See linkgit:githooks[5] for more
400400
information.
401401

402+
FILES
403+
-----
404+
405+
`$GIT_DIR/COMMIT_EDITMSG`::
406+
This file contains the commit message of a commit in progress.
407+
If `git commit` exits due to an error before creating a commit,
408+
any commit message that has been provided by the user (e.g., in
409+
an editor session) will be available in this file, but will be
410+
overwritten by the next invocation of `git commit`.
402411

403412
SEE ALSO
404413
--------

0 commit comments

Comments
 (0)