Re: [BUG] ls-files '**' globstar matches one or more directories instead of zero or more directories
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 16, 2017, 11:25 UTC
- Message-ID
- <CACsJy8DQWrLZF3wUQ5WF2FfriM6ko8Zwm_x5ErEEWTE6n5rayw@mail.gmail.com>
- In-Reply-To
- <CAO-Op+GujOUuueqwOKbb1NosZ-VYY5KVWm1+HNMC8xhd0ApEDw@mail.gmail.com>
On Sat, Apr 15, 2017 at 2:17 AM, Alistair Buxton <a.j.buxton@gmail.com> wrote:
> To reproduce, go to any git repository and run: > > diff <(git ls-files '**/*' | sort) <(git ls-files | sort)
Actually the '**/' magic only kicks in if you write
git ls-files ':(glob)**/*'
Without that '**' is a normal '*' and matching just subdirs is expected.
-- Duy