Re: How to implement the "amend!" commit ?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 14, 2021, 20:32 UTC
- Message-ID
- <xmqq7dofxnru.fsf@gitster.c.googlers.com>
- In-Reply-To
- <99b40665-45dd-6c4d-d46a-56c7dbf89568@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
> This is the only option that is backwards > compatible. `--fixup=:/<text> ` still works and can be used with the > new syntax as `--fixup=amend::/<text>`.
Do you mean both "--fixup=:/<text>" and "--fixup=amend::/<text>" work and do the same thing? If so, that is good.
> 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'"