On Wed, Nov 9, 2016 at 1:57 AM, Duy Nguyen <pclo...@gmail.com> wrote: > On Sat, Oct 29, 2016 at 1:54 AM, Stefan Beller <sbel...@google.com> wrote: >> The pathspec mechanism is extended via the new >> ":(attr:eol=input)pattern/to/match" syntax to filter paths so that it >> requires paths to not just match the given pattern but also have the >> specified attrs attached for them to be chosen. >> >> Signed-off-by: Stefan Beller <sbel...@google.com> >> Signed-off-by: Junio C Hamano <gits...@pobox.com> >> --- >> Documentation/glossary-content.txt | 20 +++++ >> dir.c | 35 ++++++++ > > Pathspec can be processed in a couple more places. The big two are > match_pathspec and tree_entry_interesting, the former traverses a list > while the latter does a tree. You don't have to implement attr > matching in tree_entry_interesting right now because nobody needs it, > probably. But you need to make sure if somebody accidentally calls > tree_entry_interesting with an attr pathspec, then it should > die("BUG"), not silently ignore attr. >
I am looking into this now.