summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-07-23 21:13:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-23 22:10:36 (GMT)
commit41f597d9bbac33a7e522c5f74b83e712ea2de13a (patch)
treeeaea4a0820b311812bcd165b37bb7aecd0adde7e /Documentation
parente6dfbcf12b0e70897818cb36903de0625931a5c6 (diff)
downloadgit-41f597d9bbac33a7e522c5f74b83e712ea2de13a.zip
git-41f597d9bbac33a7e522c5f74b83e712ea2de13a.tar.gz
git-41f597d9bbac33a7e522c5f74b83e712ea2de13a.tar.bz2
commit: document the temporary commit message file
We do not document COMMIT_EDITMSG at all, but users may want to know about it for two reasons: 1. They may want to tell their editor to configure itself for formatting a commit message. 2. If a commit is aborted by an error, the user may want to recover the commit message they typed. Let's put a note in git-commit(1). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-commit.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 2d695f6..81853e9 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -399,6 +399,15 @@ This command can run `commit-msg`, `prepare-commit-msg`, `pre-commit`,
and `post-commit` hooks. See linkgit:githooks[5] for more
information.
+FILES
+-----
+
+`$GIT_DIR/COMMIT_EDITMSG`::
+ This file contains the commit message of a commit in progress.
+ If `git commit` exits due to an error before creating a commit,
+ any commit message that has been provided by the user (e.g., in
+ an editor session) will be available in this file, but will be
+ overwritten by the next invocation of `git commit`.
SEE ALSO
--------