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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 17, 2018, 15:31 UTC
Message-ID
<xmqqa7plc8mj.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CACsJy8Di4GQLqkBmcnrfmU9aS=wizxU36Ly0BRgDEDmFG=+2Fg@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
> The alternative is -A or -M which may be easier associated with
> --amend.

I would be confused to mistake that "git commit -A $args" would do something similar to "git add -A && git commit $args".

I do my fair share of amends during the day, and I've never felt the need for a short-hand, but perhaps that is just me. I am wondering if "-E" (stands for 'edit', not 'A or M are out, and the next letter in amend is E') is understandable and memorable enough---after all, it is "editing" an existing commit, and the edit is done in a big and different way than the existing "commit --edit".

But perhaps that reasoning is a bit too cute.  I dunno.
Previous: Duy NguyenNext: Simon Ruderich
Message 8 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.