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

Function path_is_absolute

src/git/git_context.c:89–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static bool path_is_absolute(const char *path) {
90 if (!path || !path[0]) {
91 return false;
92 }
93 if (path[0] == '/') {
94 return true;
95 }
96#ifdef _WIN32
97 return isalpha((unsigned char)path[0]) && path[1] == ':';
98#else
99 return false;
100#endif
101}
102
103static char *join_root_relative(const char *root, const char *rel) {
104 if (!root || !root[0]) {

Callers 1

derive_canonical_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected