|
@ -70,13 +70,12 @@ Branch2::operator=(Branch2 const &b_) |
|
|
bool |
|
|
bool |
|
|
Branch2::matches_exclude(ghc::filesystem::path const &path_) const |
|
|
Branch2::matches_exclude(ghc::filesystem::path const &path_) const |
|
|
{ |
|
|
{ |
|
|
|
|
|
int rv; |
|
|
const char *path; |
|
|
const char *path; |
|
|
|
|
|
|
|
|
path = path_.string().c_str(); |
|
|
path = path_.string().c_str(); |
|
|
for(auto const &pattern : exclude_patterns) |
|
|
for(auto const &pattern : exclude_patterns) |
|
|
{ |
|
|
{ |
|
|
int rv; |
|
|
|
|
|
|
|
|
|
|
|
rv = ::fnmatch(pattern.c_str(),path,FNM_EXTMATCH); |
|
|
rv = ::fnmatch(pattern.c_str(),path,FNM_EXTMATCH); |
|
|
if(rv == 0) |
|
|
if(rv == 0) |
|
|
return true; |
|
|
return true; |
|
|