Re: [PATCH/RFC] commit: add short option for --amend
From: Duy Nguyen <hidden>
Date: 2018-08-16 18:53:53
On Thu, Aug 16, 2018 at 8:39 PM Jeff King [off-list ref] wrote:
On Thu, Aug 16, 2018 at 08:31:17PM +0200, Nguyễn Thái Ngọc Duy wrote:quoted
I just realized how often I type "git ci --amend". Looking back at my ~/.bash_history (only 10k lines) this is the second most often git command I type which may justify a short option for it (assuming that other people use this option often too, of course). The short option space for 'git commit' is really crowded with acCeFhimnopqsStuvz already taken. So it could be '-M' or '-A' but I'd prefer not to hold shift, so I chose '-j' even though it's not strictly related to "amend" (or perhaps we can thinking of amending as joining commits). Thoughts?I also used to type it a lot. So I did: $ type a a is aliased to `git commit --amend' I don't know if that argues for or against a short option.
It's a "for" for me because I won't have my aliases on other people's machines. -- Duy