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

Re: status letters consistency in log and ls-files

From
LRLeo Razoumov <slonik.az@gmail.com>
Date
Sep 27, 2008, 03:20 UTC
Message-ID
<ee2a733e0809262020l318b0ac3v560400d95a5ba2b7@mail.gmail.com>
In-Reply-To
<20080927002949.GA25586@coredump.intra.peff.net>
On 9/26/08, Jeff King <peff@peff.net> wrote:
Show 20 quoted lines
> On Fri, Sep 26, 2008 at 07:24:11PM -0400, Leo Razoumov wrote:
>
>  > Another script takes output of
>  >   git ls-files -v -c -d -m -o -k
>  > and for each file pulls together all the file status letters in one record.
>
>
> OK. I was thinking I could suggest just using "git diff" here instead.
>  E.g.,:
>
>   git diff --name-status
>
>  will show you the modified and deleted files. But since you are using
>  "-c" to show _all_ cached files, I think only ls-files can do that
>  (since diff is, obviously, about files with differences).
>
>  So I'm not sure there is a straight-forward solution short of
>  translating the status codes.
>
>  -Peff

Moreover, git diff would not show untracked files while git ls-files will include them and label '?'

--Leo--
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “status letters consistency in log and ls-files”
  1. Leo RazoumovSep 26, 2008
  2. Jeff KingSep 26, 2008
  3. Leo RazoumovSep 27, 2008
  4. Jeff KingSep 27, 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.