From 98f60c1ae9ea1b3c5c0fe4bbe68431bcb2c0c252 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 10 Mar 2024 17:58:17 -0500 Subject: [PATCH] branch2.cpp --- src/branch2.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/branch2.cpp b/src/branch2.cpp index 575bf711..b7475041 100644 --- a/src/branch2.cpp +++ b/src/branch2.cpp @@ -70,5 +70,15 @@ Branch2::operator=(Branch2 const &b_) bool Branch2::matches_exclude(ghc::filesystem::path const &path_) const { + const char *path; + path = path_.string().c_str(); + for(auto const &pattern : exclude_patterns) + { + int rv; + + rv = ::fnmatch(pattern.c_str(),path,FNM_EXTMATCH); + } + + return false; }