MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / glob_match_star

Function glob_match_star

src/discover/gitignore.c:87–97  ·  view source on GitHub ↗

Match a * (single star): match any sequence not containing /. */

Source from the content-addressed store, hash-verified

85
86/* Match a * (single star): match any sequence not containing /. */
87static bool glob_match_star(const char *pat, const char *str,
88 int *budget) { // NOLINT(misc-no-recursion)
89 for (const char *s = str;; s++) {
90 if (glob_match(pat, s, budget)) {
91 return true;
92 }
93 if (!*s || *s == '/') {
94 return false;
95 }
96 }
97}
98
99/* Match a [...] character class at current position.
100 * Returns true if matched. Advances *pat_out past the closing ']'. */

Callers 1

glob_matchFunction · 0.85

Calls 1

glob_matchFunction · 0.85

Tested by

no test coverage detected