emacs-devel
[Top][All Lists]
Advanced

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

Re: Amending commits


From: Andreas Schwab
Subject: Re: Amending commits
Date: Sun, 25 Sep 2022 15:19:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

On Sep 25 2022, Philip Kaludercic wrote:

> Visuwesh <visuweshm@gmail.com> writes:
>
>> [ஞாயிறு செப்டம்பர் 25, 2022] Philip Kaludercic wrote:
>>
>>>> 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.
>>
>> As someone who does not really understand Git, does this mean we are
>> rewriting the log message without also committing a change?  I thought
>> that was not allowed by Git.
>
> Git allows it if you pass the --allow-empty flag.

You don't need --allow-empty if you use --amend.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



reply via email to

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