From: Duy Nguyen Date: Sun, 16 Apr 2017 11:25:47 GMT Subject: Re: [BUG] ls-files '**' globstar matches one or more directories instead of zero or more directories Message-ID: In-Reply-To: On Sat, Apr 15, 2017 at 2:17 AM, Alistair Buxton 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