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

Re: I suggest that git commit support -A option, just like hg does.thanks.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2011, 04:56 UTC
Message-ID
<7vfwlc1ox1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<buoy5z4ed3w.fsf@dhlpc061.dev.necel.com>
Miles Bader <miles@gnu.org> writes:
> Remember:  "just add an alias!" is an acceptable answer only if the
> desired feature is odd/unusual.  For desired features that are likely
> to be generally useful, git should do the right thing, out of the box,
> for everybody.

The reason I deliberately chose to use capital letter in "add -A" even when we do not have "add -a" was exactly so that interested parties can do "commit -A" to match it (and "commit -a" is doing the _right_ thing out of the box, and its behaviour will not change). Hopefully you can take it as a strong hint that I personally do not think "commit -A" is without merit.

So far, nobody stepped up to do it, though. I have been taking it as a sign that "commit -A" is not one of the commonly desired features but is probably closer to your "odd/unusual". It's up to the user/developer community to change that ;-)

Previous: Miles BaderNext: Michael Witten
Message 6 of 7 in “I suggest that git commit support -A option, just like hg does.thanks.”
  1. jellyAug 6, 2011
  2. Magnus BäckAug 6, 2011
  3. jellyAug 6, 2011
  4. Marc WeberAug 6, 2011
  5. Miles BaderAug 8, 2011
  6. Junio C HamanoAug 8, 2011
  7. Michael WittenAug 8, 2011

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.