git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] commit: add short option for --amend

From
Duy Nguyen <pclouds@gmail.com>
Date
Aug 16, 2018, 18:46 UTC
Message-ID
<CACsJy8A7hoOGFCnVxTMdySr=8yUP+4tt4hNO6j-VnhKHJDyE7g@mail.gmail.com>
In-Reply-To
<20180816183903.GA3737@sigill.intra.peff.net>
On Thu, Aug 16, 2018 at 8:39 PM Jeff King <peff@peff.net> wrote:
Show 22 quoted lines
>
> On Thu, Aug 16, 2018 at 08:31:17PM +0200, Nguyễn Thái Ngọc Duy wrote:
>
> > 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
Previous: Jeff KingNext: Jonathan Nieder
Message 3 of 9 in “commit: add short option for --amend”
  1. commit: add short option for --amendNguyễn Thái Ngọc Duy, Aug 16, 2018
  2. Jeff KingAug 16, 2018
  3. Duy NguyenAug 16, 2018
  4. Jonathan NiederAug 17, 2018
  5. Duy NguyenAug 17, 2018
  6. Jeff KingAug 17, 2018
  7. Duy NguyenAug 17, 2018
  8. Junio C HamanoAug 17, 2018
  9. Simon RuderichAug 18, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.