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

Re: Commiting automatically (2)

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 19, 2010, 18:36 UTC
Message-ID
<20101219183619.GB11955@burratino>
In-Reply-To
<20101219150850.GC12136@foodlogiq3-xp-d620.thebe.ath.cx>
Taylor Hedberg wrote:
> On Sun, Dec 19, 2010 at 08:29:50AM +0000, Maaartin wrote:
Show 7 quoted lines
>> There's one more problem. My script doesn't recognize deleted files, since
>> git add -A
>> does nothing to them. I'm quite sure I saw a solution to this, but can't find 
>> it now...
>
> I believe "git add -u" will do the same thing as "git add -A", plus
> handle deleted files.
Hmm, the "git add" manual suggests it is the other way around:
 -A, --all
	Like -u, but match <filepattern> against files in the working
	tree in addition to the index. That means that it will find new
	files as well as staging modified content and removing files
	that are no longer in the working tree.

So I would expect "git add -A" to do the same thing as "git add -u", plus handling added files.

Maaartin, could you give an example showing where add -A goes wrong?
Previous: Taylor HedbergNext: Jonathan Nieder
Message 3 of 13 in “Commiting automatically (2)”
  1. MaaartinDec 19, 2010
  2. Taylor HedbergDec 19, 2010
  3. Jonathan NiederDec 19, 2010
  4. Jonathan NiederDec 19, 2010
  5. MaaartinDec 20, 2010
  6. Junio C HamanoDec 19, 2010
  7. MaaartinDec 20, 2010
  8. Enrico WeigeltDec 20, 2010
  9. MaaartinDec 21, 2010
  10. Jakub NarebskiDec 21, 2010
  11. Jakub NarebskiDec 27, 2010
  12. Maaartin-1Jan 3, 2011
  13. Jakub NarebskiJan 3, 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.