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

Re: "git commit -a" Doesn't Add New Files. Why?

From
Jon Forrest <nobozo@gmail.com>
Date
May 28, 2025, 23:06 UTC
Message-ID
<550e4935-6ae6-44d8-bde2-d61db3656830@gmail.com>
In-Reply-To
<xmqqjz60pe65.fsf@gitster.g>
On 5/28/25 3:24 PM, Junio C Hamano wrote:
Show 5 quoted lines
> But `git commit -a` would not change, even if it won't add cruft
> with well curated .gitignore files.  That will be a terrible
> backward incompatible change for those who expect it only deals with
> the files it knows about (including the one that is not yet tracked
> but its presence is known via "git add -N").

Just to make it clear - I was only discussing adding a '-A' (capital A) option to git commit. Its current behavior with '-a' (small a) wouldn't change.

Jon
Previous: Junio C HamanoNext: Kristoffer Haugsbakk
Message 4 of 7 in “"git commit -a" Doesn't Add New Files. Why?”
  1. Jon ForrestMay 27, 2025
  2. Nico WilliamsMay 27, 2025
  3. Junio C HamanoMay 28, 2025
  4. Jon ForrestMay 28, 2025
  5. Kristoffer HaugsbakkMay 27, 2025
  6. Junio C HamanoMay 28, 2025
  7. Junio C HamanoMay 28, 2025

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.