[PATCH] Add directory pattern matching to attributes

2012-12-05 Thread Jean-Noël AVILA
The manpage of gitattributes says: The rules how the pattern matches paths are the same as in .gitignore files and the gitignore pattern rules has a pattern ending with / for directory matching. This rule is specifically relevant for the 'export-ignore' rule used for git archive. Signed-off-by:

[PATCH] Add directory pattern matching to attributes

2012-12-05 Thread Jean-Noël AVILA
The manpage of gitattributes says: The rules how the pattern matches paths are the same as in .gitignore files and the gitignore pattern rules has a pattern ending with / for directory matching. This rule is specifically relevant for the 'export-ignore' rule used for git archive. Signed-off-by:

Re: [PATCH] Add directory pattern matching to attributes

2012-12-05 Thread Junio C Hamano
Jean-Noël AVILA jn.av...@free.fr writes: -static void prepare_attr_stack(const char *path) +static void prepare_attr_stack(const char *path, unsigned mode) { struct attr_stack *elem, *info; int dirlen, len; @@ -645,28 +645,43 @@ static void prepare_attr_stack(const char *path)