From: Junio C Hamano Date: Sun, 17 Jan 2021 04:33:00 GMT Subject: Re: How to implement the "amend!" commit ? Message-ID: In-Reply-To: Charvi Mendiratta writes: > Earlier, I thought to implement the UI of amend! commit as : > "git commit --fixup=a/amend:" > > 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 ? It means that all of these do the same thing ... git commit --fixup=amend: git commit --fixup=amen: git commit --fixup=ame: git commit --fixup=am: git commit --fixup=a: ... until somebody more brilliant than either of us comes along and invents another operation that sits next to 'amend' and 'reword', say, 'annoy'. At that point, git commit --fixup=a: no longer uniquely identifies a choice among three ('amend', 'annoy', or 'reword') and you'd give an error message, but git commit --fixup=am: will keep working as an abbreviation for "amend".