From: Sebastian Wiesner <swiesner@lunaryorn.com>
To: help-gnu-emacs@gnu.org
Subject: Re: magit: Previous commit message keeps appearing
Date: Thu, 07 Aug 2014 13:17 +0200 [thread overview]
Message-ID: <2795271.EbpyauUFkC@lunaryorn> (raw)
In-Reply-To: <lrvm1s$pbd$1@ger.gmane.org>
Am Donnerstag, 7. August 2014, 12:56:59 schrieb Florian Lindner:
> Hello,
>
> from magit-status I use s to stage a couple of files, then "c c" to commit.
> In another buffer I can edit the commit message. What puzzles me, is why
> magit shows the commit message of the previous commit including the file
> list.
Magit simply visits the COMMIT_EDITMSG file in .git/ when you make a commit.
Presumably, the buffer for this file wasn't killed after your previous commit,
and you don't have auto-revert-mode on. Hence, the next commit would just
bring the existing COMMIT_EDITMSG buffer up again, with the old contents, like
if you re-visit a file again.
COMMIT_EDITMSG will have the right contents though, so M-x revert-buffer will
update the buffer accordingly.
next prev parent reply other threads:[~2014-08-07 11:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 10:56 magit: Previous commit message keeps appearing Florian Lindner
2014-08-07 11:17 ` Sebastian Wiesner [this message]
2014-08-07 11:20 ` Quanyang Liu
2014-08-07 17:01 ` Florian Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2795271.EbpyauUFkC@lunaryorn \
--to=swiesner@lunaryorn.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.