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

git-ls-files -o no recurse?

From
DTDarrin Thompson <darrint@progeny.com>
Date
Jan 4, 2006, 18:51 UTC
Message-ID
<1136400692.5919.11.camel@localhost.localdomain>

git-ls-files -o reports _all_ the unknown files it finds in a work area. Subversion and probably other systems "simply ignore all the files and directories inside an unknown directory and just note the directory as unknown." (A quote from my porcelain's mailing list.)

I'd like to make this friendly behavior the default in my porcelain. Unfortunately, getting the same result from a porcelain requires implementing a non-trivial algorithm to discover common prefixes, worry about performance on large projects, etc.

Would it be hard to make git-ls-files optionally do this?

-- Darrin

Next: Linus Torvalds
Message 1 of 9 in “git-ls-files -o no recurse?”
  1. Darrin ThompsonJan 4, 2006
  2. Linus TorvaldsJan 4, 2006
  3. Darrin ThompsonJan 5, 2006
  4. Linus TorvaldsJan 5, 2006
  5. Junio C HamanoJan 6, 2006
  6. Darrin ThompsonJan 7, 2006
  7. Darrin ThompsonJan 7, 2006
  8. Junio C HamanoJan 7, 2006
  9. Linus TorvaldsJan 7, 2006

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.