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

Re: how to list all files that will be comitted

From
RKRhodes, Kate <masukomi@gmail.com>
Date
Jun 25, 2008, 16:16 UTC
Message-ID
<54450C0E-1AC8-4CE8-919C-8326ACC588EB@gmail.com>
In-Reply-To
<20080625161439.GA1794@diana.vm.bytemark.co.uk>
Perfect, exactly what I wanted. Thanks.
-Kate
On Jun 25, 2008, at 12:14 PM, Karl Hasselström wrote:
Show 17 quoted lines
> On 2008-06-25 12:01:49 -0400, Rhodes, Kate wrote:
>
>> yeah, but i was hoping for plumbing, not porcelain, that showed just
>> what i wanted so that i didn't have to parse status' output.
>
> Unless you want a listing of all the files in the index, you probably
> want to call diff-index.
>
>  git diff-index --cached <tree-ish>
>
> gives you the diff between the index and a tree-ish. With the
> --name-only option, you get only the filenames and not all the modes,
> blob sha1s, etc.
>
> -- 
> Karl Hasselström, kha@treskal.com
>      www.treskal.com/kalle
Previous: Karl HasselströmNext: Ian Hilt
Message 5 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.