MCPcopy Index your code
hub / github.com/CodeGraphContext/CodeGraphContext / index_repo

Function index_repo

tests/unit/core/test_cgcignore_patterns.py:59–64  ·  view source on GitHub ↗

Index the test repository

(test_dir: Path)

Source from the content-addressed store, hash-verified

57 run(f'cgc query "MATCH (r:Repository {{path: \\"{escaped_path}\\"}}) DETACH DELETE r"')
58
59def index_repo(test_dir: Path):
60 """Index the test repository"""
61 output = run(f"cgc index {test_dir}")
62 print(f"INDEX OUTPUT: {output[:500]}") # Debug
63 time.sleep(0.5) # Wait for indexing to complete
64 return output
65
66def query_all_files():
67 """Query ALL files in database for debugging"""

Calls 1

runFunction · 0.70

Tested by

no test coverage detected