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

Re: how to list all files that will be comitted

From
RDReece Dunn <msclrhd@googlemail.com>
Date
Jun 25, 2008, 16:14 UTC
Message-ID
<3f4fd2640806250914v7b0ee72aw65f5dfe72790ce3c@mail.gmail.com>
In-Reply-To
<644094BE-2835-41EF-B1B4-615B8A4BD509@gmail.com>
2008/6/25 Rhodes, Kate <masukomi@gmail.com>:
Show 5 quoted lines
> I know ls-files is the tool I need but I haven't been able to figure out
> what combination of options will give me the files that have been added to
> the index.
>
> -Kate

`git status` will do this, unless you need to do additional processing on the results.

HTH,
- Reece
Previous: Ian HiltNext: Michael J Gruber
Message 7 of 8 in “how to list all files that will be comitted”
  1. Rhodes, KateJun 25, 2008
  2. Ian HiltJun 25, 2008
  3. Rhodes, KateJun 25, 2008
  4. Karl HasselströmJun 25, 2008
  5. Rhodes, KateJun 25, 2008
  6. Ian HiltJun 25, 2008
  7. Reece DunnJun 25, 2008
  8. Michael J GruberJun 25, 2008

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.