Holds git patterns and reports weights if matched.
More...
#include <Pattern.h>
|
| unsigned | match (const std::filesystem::path &path) const |
| | Match a path against the stored patterns. More...
|
| |
Holds git patterns and reports weights if matched.
◆ create()
| static std::optional<Pattern> SlKernCVS::Pattern::create |
( |
std::string |
pattern | ) |
|
|
static |
Build a (git) Pattern.
- Parameters
-
| pattern | A pattern to build from |
- Returns
- A Pattern if successful, otherwise nullopt.
◆ match()
| unsigned SlKernCVS::Pattern::match |
( |
const std::filesystem::path & |
path | ) |
const |
|
inline |
Match a path against the stored patterns.
- Parameters
-
- Returns
- weight of the matches pattern or 0 if not found.
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/slhelpers-20260428.f233ce9/include/kerncvs/Pattern.h