Merging upstream version 0.15.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
edd0dce1fe
commit
b3a2ab2af7
51 changed files with 1255 additions and 507 deletions
|
@ -47,7 +47,12 @@ bool Exclude::excluded( const char * const filename )
|
|||
while( *p )
|
||||
{
|
||||
for( unsigned i = 0; i < patterns.size(); ++i )
|
||||
#ifdef FNM_LEADING_DIR
|
||||
if( fnmatch( patterns[i].c_str(), p, FNM_LEADING_DIR ) == 0 ) return true;
|
||||
#else
|
||||
if( fnmatch( patterns[i].c_str(), p, 0 ) == 0 ||
|
||||
fnmatch( ( patterns[i] + "/*" ).c_str(), p, 0 ) == 0 ) return true;
|
||||
#endif
|
||||
while( *p && *p != '/' ) ++p; // skip component
|
||||
while( *p == '/' ) ++p; // skip slashes
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue