From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.help Subject: Re: magit: Previous commit message keeps appearing Date: Thu, 07 Aug 2014 13:17 +0200 Message-ID: <2795271.EbpyauUFkC@lunaryorn> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1407410271 9668 80.91.229.3 (7 Aug 2014 11:17:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2014 11:17:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 13:17:43 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XFLhX-0004ll-Dn for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2014 13:17:43 +0200 Original-Received: from localhost ([::1]:45619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFLhW-0007B3-Uc for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Aug 2014 07:17:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFLhH-00079s-32 for help-gnu-emacs@gnu.org; Thu, 07 Aug 2014 07:17:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFLhA-00080v-OV for help-gnu-emacs@gnu.org; Thu, 07 Aug 2014 07:17:27 -0400 Original-Received: from vega.uberspace.de ([95.143.172.245]:36173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFLhA-00080c-F5 for help-gnu-emacs@gnu.org; Thu, 07 Aug 2014 07:17:20 -0400 Original-Received: (qmail 32714 invoked from network); 7 Aug 2014 11:17:19 -0000 Original-Received: from localhost (HELO lunaryorn.localnet) (127.0.0.1) by vega.uberspace.de with SMTP; 7 Aug 2014 11:17:19 -0000 User-Agent: KMail/4.13.3 (Linux/3.15.8-1-ARCH; KDE/4.13.3; x86_64; ; ) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 95.143.172.245 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99115 Archived-At: 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.