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

Function path_is_absolute

src/git/git_context.c:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static bool path_is_absolute(const char *path) {
100 if (!path || !path[0]) {
101 return false;
102 }
103 if (path[0] == '/') {
104 return true;
105 }
106#ifdef _WIN32
107 return isalpha((unsigned char)path[0]) && path[1] == ':';
108#else
109 return false;
110#endif
111}
112
113static char *join_root_relative(const char *root, const char *rel) {
114 if (!root || !root[0]) {

Callers 1

derive_canonical_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected