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

Re: git commit --amen

From
Phil Hord <phil.hord@gmail.com>
Date
Oct 4, 2012, 14:25 UTC
Message-ID
<CABURp0rbNZSOC_Jtxfjp+j3SQR=+r0pU6vOXvc0Jnth0UU9mDA@mail.gmail.com>
In-Reply-To
<0d559e3191a392841124d96870a67735@rom1v.com>
> Is it normal that "git commit --amen" actually works ?
> (it does like --amend)
>
> version 1.7.10.4
Yes.  From Documentation/technical/api-parse-options.txt:
    * Long options may be 'abbreviated', as long as the abbreviation
      is unambiguous.
Apparently since 2008-06-22.

So 'git commit --am' also works. But it should probably be avoided because of its similarity to 'git commit -am'.

Phil
Previous: Romain Vimont (®om)Next: Romain Vimont (®om)
Message 2 of 7 in “git commit --amen”
  1. Romain Vimont (®om)Oct 4, 2012
  2. Phil HordOct 4, 2012
  3. Romain Vimont (®om)Oct 4, 2012
  4. Erik Faye-LundOct 4, 2012
  5. Junio C HamanoOct 4, 2012
  6. Junio C HamanoOct 4, 2012
  7. Junio C HamanoOct 4, 2012

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.