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

Git add documentation error

From
ABAngelo Borsotti <angelo.borsotti@gmail.com>
Date
Oct 27, 2022, 11:53 UTC
Message-ID
<CAB9Jk9Ay2PPEYKve3DXVmG__yZjO1mgh1MxaKA+wfsF0ZvKRqA@mail.gmail.com>
Hello,

the reference manual for the "git add" command does not specify what that command does when applied to an unmodified file. By testing this, I have seen that it does not add the file to the index, and consequently it does not add it when a subsequent commit is done. I think that this should be documented.

Thank you -Angelo Borsotti

Next: Philip Oakley
Message 1 of 8 in “Git add documentation error”
  1. Angelo BorsottiOct 27, 2022
  2. Philip OakleyOct 27, 2022
  3. Philip OakleyOct 27, 2022
  4. Angelo BorsottiOct 27, 2022
  5. Junio C HamanoOct 27, 2022
  6. Angelo BorsottiOct 27, 2022
  7. Junio C HamanoOct 27, 2022
  8. Angelo BorsottiOct 27, 2022

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.