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

Newbie question: how can I list added files?

From
Bruce Korb <bruce.korb@gmail.com>
Date
Jun 23, 2010, 17:31 UTC
Message-ID
<AANLkTinxOE5xcP_V-PvoZGlfsxtcCafoYKy_PuBZnQnQ@mail.gmail.com>

git-ls-files doesn't seem to have an option for it, neither does git-add. Seems like it ought to be trivial, but I'm not seeing how to do it. :( Thank you!!

P.S.: yes, I know I can parse the output from git-status. I'd really rather not for various reasons. If it's the only way, then I'll do the only thing.

Next: Junio C Hamano
Message 1 of 9 in “Newbie question: how can I list added files?”
  1. Bruce KorbJun 23, 2010
  2. Junio C HamanoJun 23, 2010
  3. Bruce KorbJun 23, 2010
  4. Junio C HamanoJun 23, 2010
  5. Jeff KingJun 23, 2010
  6. Bruce KorbJun 23, 2010
  7. Eric RaibleJun 23, 2010
  8. Tomas CarneckyJun 23, 2010
  9. Andreas SchwabJun 23, 2010

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.