Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::IgnoreMatcher::Rule Struct Reference

One compiled gitignore rule (public so internal helpers in the .cpp can construct Rules without friend declarations). More...

#include <entropic/mcp/servers/ignore_matcher.h>

Public Attributes

std::regex re_exact
 Path equals pattern target.
 
std::regex re_under
 Path is strictly below target.
 
bool negate = false
 Leading !
 
bool dir_only = false
 Trailing / (directory match)
 
std::string original
 Raw pattern for diagnostics.
 
std::string base
 Anchor base, "" means root.
 

Detailed Description

One compiled gitignore rule (public so internal helpers in the .cpp can construct Rules without friend declarations).

Two regexes per rule disambiguate the dir_only semantic:

  • re_exact matches the path IS the pattern (no descendants)
  • re_under matches the path is STRICTLY BELOW the pattern

For dir_only patterns (build/), re_exact only counts when the path is itself a directory; re_under always counts (descendants). For regular patterns (*.log, foo), either regex counts.

Version
2.1.4

Definition at line 126 of file ignore_matcher.h.

Member Data Documentation

◆ base

std::string entropic::IgnoreMatcher::Rule::base

Anchor base, "" means root.

Definition at line 132 of file ignore_matcher.h.

◆ dir_only

bool entropic::IgnoreMatcher::Rule::dir_only = false

Trailing / (directory match)

Definition at line 130 of file ignore_matcher.h.

◆ negate

bool entropic::IgnoreMatcher::Rule::negate = false

Leading !

Definition at line 129 of file ignore_matcher.h.

◆ original

std::string entropic::IgnoreMatcher::Rule::original

Raw pattern for diagnostics.

Definition at line 131 of file ignore_matcher.h.

◆ re_exact

std::regex entropic::IgnoreMatcher::Rule::re_exact

Path equals pattern target.

Definition at line 127 of file ignore_matcher.h.

◆ re_under

std::regex entropic::IgnoreMatcher::Rule::re_under

Path is strictly below target.

Definition at line 128 of file ignore_matcher.h.


The documentation for this struct was generated from the following file: