emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Amending commits


From: Lars Ingebrigtsen
Subject: Re: Amending commits
Date: Sun, 25 Sep 2022 13:39:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Philip Kaludercic <philipk@posteo.net> writes:

> I think that command assumed you have changes that you wish to add to
> the last commit (so you couldn't just use it to reword a commit).  You
> start preparing a new commit using `vc-next-action', then when the
> buffer appears you M-x vc-git-log-edit-toggle-amend to indicate that
> this commit will be amending the previous one.  So the commit message
> gets replaced by that of the previous message.  The rest just involves
> finishing up like any other commit.

Ah, I see.

>> There should be a command in `vc-dir-mode' that allows you to amend the
>> last commit, I think.
>
> That would be good, because it would also allow easier to reword a
> commit that doesn't require any code changes.

Yes.  My use case is "git am" and then I want to add the bug# to the
commit message -- and in that case, I don't have a log-edit buffer at
all.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]