Re: How to implement the "amend!" commit ?
- From
Charvi Mendiratta <charvi077@gmail.com>
- Date
- Jan 17, 2021, 03:43 UTC
- Message-ID
- <CAPSFM5cEnex1xaBy5ia_xNFDNzt5_Y=W-6TB9d9yW_AiPAKxDg@mail.gmail.com>
- In-Reply-To
- <xmqq7dofxnru.fsf@gitster.c.googlers.com>
Hi Junio and Phillip,
On Fri, 15 Jan 2021 at 02:02, Junio C Hamano <gitster@pobox.com> wrote:
> > Phillip Wood <phillip.wood123@gmail.com> writes: >
[...]
Show 10 quoted lines
> > > Note that we intend to allow > > accept any prefix of "amend" and "reword" so --fixup=a:<commit> would > > work. > > "a" and "r" may happen to be unique but we would not want to be > limited to these two forever---future developers are allowed to > invent other clever variants. So let's say "accept unique prefix as > abbreviation for these operating mode words like 'amend' and 'reword'" >
Earlier, I thought to implement the UI of amend! commit as : "git commit --fixup=a/amend:<commit>"
So users can either use 'a' as abbreviation or 'amend'. But I want to once confirm if I got this right ? As I am doubtful about, what does allowing to accept any prefix of "amend" and "reword" means ?
Thanks and Regards, Charvi