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

Function path_is_absolute

src/git/git_context.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114static bool path_is_absolute(const char *path) {
115 if (!path || !path[0]) {
116 return false;
117 }
118 if (path[0] == '/') {
119 return true;
120 }
121#ifdef _WIN32
122 return isalpha((unsigned char)path[0]) && path[1] == ':';
123#else
124 return false;
125#endif
126}
127
128static char *join_root_relative(const char *root, const char *rel) {
129 if (!root || !root[0]) {

Callers 1

derive_canonical_rootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected