Add directory pattern matching to attributes
authorJean-Noël AVILA <avila.jn@gmail.com>
Sat, 8 Dec 2012 20:04:39 +0000 (21:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Dec 2012 06:07:23 +0000 (22:07 -0800)
commit94bc671a1f2e8610de475c2494d2763355a99f65
treeee7215f3ca5209152ba36b82955d8e12160fb425
parent24a62db7bbcbd8083bd0070ecd434205489629ed
Add directory pattern matching to attributes

The manpage of gitattributes says: "The rules how the pattern
matches paths are the same as in .gitignore files" and the gitignore
pattern matching 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: Jean-Noel Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
attr.c
t/t5002-archive-attr-pattern.sh [new file with mode: 0755]