Re: let git-ls-files suppress the expanding of all files in sub directory
- From
- Erik Cervin Edin <erik@cervined.in>
- Date
- Jun 30, 2022, 23:04 UTC
- Message-ID
- <CA+JQ7M_rd_SdzLOL=a0ok=HL9AZ-q=V2Bc2aTuLRrPW8j7DOqA@mail.gmail.com>
- In-Reply-To
- <202206281608475079493@oschina.cn>
On Thu, Jun 30, 2022, 8:26 AM lilinchao@oschina.cn <lilinchao@oschina.cn> wrote:
Show 7 quoted lines
> > As subject said, is this possible for git-ls-files to work like this?: > " $ git ls-files --no-recursion > a.txt > b.txt > dir/ > "
An alternative git ls-tree --name-only HEAD is suggested here https://stackoverflow.com/a/10453994
Maybe that works?