Thread (3 messages) 3 messages, 3 authors, 2021-01-17

Re: How to implement the "amend!" commit ?

flat view

From: Charvi Mendiratta <hidden>
Date: 2021-01-17 03:44:28

Hi Junio and Phillip,

On Fri, 15 Jan 2021 at 02:02, Junio C Hamano [off-list ref] wrote:
Phillip Wood [off-list ref] writes:
[...]
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help