Re: [BUG] ls-files '**' globstar matches one or more directories instead of zero or more directories

2017-04-16 Thread Alistair Buxton
t true for ls-files: ":(glob)**/.gitignore" is completely different to ":(glob).gitignore". The only place where it is true is inside .gitignore files, and there the ":(glob)" syntax does not work. -- Alistair Buxton a.j.bux...@gmail.com

Re: [BUG] ls-files '**' globstar matches one or more directories instead of zero or more directories

2017-04-16 Thread Alistair Buxton
' | sort) of course it works as expected if you say the magic word: diff <(ls -1 */.gitignore | sort) <(git ls-files ':(glob)*/.gitignore' | sort) -- Alistair Buxton a.j.bux...@gmail.com

[BUG] ls-files '**' globstar matches one or more directories instead of zero or more directories

2017-04-14 Thread Alistair Buxton
The same happens with eg '**/Makefile' - only Makefiles in subdirectories are listed. I have personally tested with 2.7.8 and 2.12.0. Others on IRC report that this happens in the next branch. -- Alistair Buxton a.j.bux...@gmail.com