emacs-devel
[Top][All Lists]
Advanced

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

Re: Amending commits


From: Philip Kaludercic
Subject: Re: Amending commits
Date: Sun, 25 Sep 2022 13:49:48 +0000

Andreas Schwab <schwab@linux-m68k.org> writes:

> 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.

You are right, I made a mistake when testing it out locally.



reply via email to

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