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

Function gf_native_executable

src/mcp/test_impact_git.c:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static bool gf_native_executable(const char *path) {
123 if (!gf_absolute(path))
124 return false;
125#ifdef _WIN32
126 size_t n = strlen(path);
127 return n >= 4 && path[n - 4] == '.' && (path[n - 3] == 'e' || path[n - 3] == 'E') &&
128 (path[n - 2] == 'x' || path[n - 2] == 'X') && (path[n - 1] == 'e' || path[n - 1] == 'E');
129#else
130 return true; /* trusted internal resolution, not an arbitrary user program */
131#endif
132}
133
134static bool gf_gate(cbm_git_facts_t *facts, cbm_git_facts_error_t *error) {
135 if (facts->stopped.status != CBM_GIT_FACTS_OK) {

Callers 1

cbm_git_facts_openFunction · 0.85

Calls 1

gf_absoluteFunction · 0.70

Tested by

no test coverage detected