[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.
- Amending commits, Lars Ingebrigtsen, 2022/09/25
- Re: Amending commits, Philip Kaludercic, 2022/09/25
- Re: Amending commits, Manuel Giraud, 2022/09/25
- Re: Amending commits, Gregory Heytings, 2022/09/25
- Re: Amending commits, Stefan Monnier, 2022/09/25
- Re: Amending commits, Gregory Heytings, 2022/09/25
- Re: Amending commits, Dmitry Gutov, 2022/09/25
- Re: Amending commits, Gregory Heytings, 2022/09/25
- Re: Amending commits, Stefan Monnier, 2022/09/25
- Re: Amending commits, Gregory Heytings, 2022/09/26
- Re: Amending commits, Andreas Schwab, 2022/09/26
- Re: Amending commits, Gregory Heytings, 2022/09/26