Re: [PATCH] Add directory pattern matching to attributes

2012-12-06 Thread Jean-Noël Avila
On 06/12/2012 00:35, Junio C Hamano wrote: "Jean-Noël AVILA" 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

Re: [PATCH] Add directory pattern matching to attributes

2012-12-05 Thread Junio C Hamano
"Jean-Noël AVILA" 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) > } Why

[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: