|
Entropic 2.3.8
Local-first agentic inference engine
|
Gitignore + explorerignore implementation (#15, v2.1.4). More...
#include <entropic/mcp/servers/ignore_matcher.h>#include <entropic/types/logging.h>#include <fstream>#include <sstream>
Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Variables | |
| static auto | logger = entropic::log::get("mcp.filesystem.ignore") |
Gitignore + explorerignore implementation (#15, v2.1.4).
Pattern compilation is the only non-trivial part. Each gitignore line becomes a Rule whose regex source matches against the path relative to the rule's anchor base, in forward-slash form.
Conversion rules (gitignore body → regex source):
** (between separators) → .** → [^/]* (does not cross /)? → [^/][abc] → preserved verbatim\X → escaped literal XAnchoring:
/ OR contains / (anywhere except trailing) → regex anchored at the rule's base(?:.*\/)?)Definition in file ignore_matcher.cpp.
|
static |
Definition at line 34 of file ignore_matcher.cpp.