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

let git-ls-files suppress the expanding of all files in sub directory

From
Llilinchao@oschina.cn <lilinchao@oschina.cn>
Date
Jun 30, 2022, 06:14 UTC
Message-ID
<202206281608475079493@oschina.cn>
As subject said, is this possible for git-ls-files to work like this?:
" $ git ls-files --no-recursion
    a.txt
    b.txt
    dir/
"
instead of:
" $ git ls-files 
    a.txt
    b.txt
    dir/one/two/1.txt
    dir/one/two/2.txt
    dir/one/3.txt
    dir/4.txt
"
Does it make sense?
Next: Erik Cervin Edin
Message 1 of 3 in “let git-ls-files suppress the expanding of all files in sub directory”
  1. lilinchao@oschina.cnJun 30, 2022
  2. Erik Cervin EdinJun 30, 2022
  3. Junio C HamanoJun 30, 2022

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.