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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 30, 2022, 8:26 AM lilinchao@xxxxxxxxxx <lilinchao@xxxxxxxxxx> wrote:
>
> 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?



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux