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

Function include_path_depth

src/pipeline/pass_pkgmap.c:1868–1876  ·  view source on GitHub ↗

Directory depth of a repo-relative path: how many directories sit above it. */

Source from the content-addressed store, hash-verified

1866
1867/* Directory depth of a repo-relative path: how many directories sit above it. */
1868static int include_path_depth(const char *path) {
1869 int depth = 0;
1870 for (const char *p = path; *p; p++) {
1871 if (*p == '/' || *p == '\\') {
1872 depth++;
1873 }
1874 }
1875 return depth;
1876}
1877
1878/* Total order among nodes whose file path ends with the include path. The
1879 * by-name hits arrive in node-registration order, which under parallel

Callers 1

include_target_outranksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected