GNU bug report logs - #38343
27.0.50; vc git: Cannot edit outgoing log (like git commit --amend)

Previous Next

Package: emacs;

Reported by: Fredrik Nyqvist <fredrik.nyqvist94 <at> gmail.com>

Date: Sat, 23 Nov 2019 10:03:01 UTC

Severity: normal

Tags: patch

Found in version 27.0.50

Fixed in version 31.1

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 38343 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Fredrik Nyqvist <fredrik.nyqvist94 <at> gmail.com>
Cc: 38343 <at> debbugs.gnu.org
Subject: Re: bug#38343: 27.0.50; vc git: Cannot edit outgoing log (like git
 commit --amend)
Date: Tue, 26 Nov 2019 00:49:18 +0200
On 25.11.2019 22:16, Fredrik Nyqvist wrote:
> Yes, I have tried the option you mention to edit the last commit with 
> C-x C-e and it is working fine.
> But It seems that it only allows amending the last commit if I have 
> edited a file.

Yes. Not sure how to change an arbitrary commit in Git anyway (without 
interactive rebase). The best approximation looks like this:

https://stackoverflow.com/a/48999882/615245

> As I understand it I need to edit a file and then do vc-next-action to 
> get to the log-edit buffer
> where you can do C-x C-e.

Yes.

> I could not find a way to do this if just the commit message is supposed 
> to be updated.

And that is indeed the main downside of our current solution.

(The way to do it is to edit, call vc-next-action, then undo the edit in 
the file, but commit the amended message anyway. Which could be more 
efficient).




This bug report was last modified 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.