MCPcopy
hub / github.com/tirth8205/code-review-graph / detect_vcs

Function detect_vcs

code_review_graph/incremental.py:195–201  ·  view source on GitHub ↗

Return ``'git'``, ``'svn'``, or ``'none'`` based on VCS markers at *root*.

(root: Path)

Source from the content-addressed store, hash-verified

193
194
195def detect_vcs(root: Path) -> str:
196 """Return ``'git'``, ``'svn'``, or ``'none'`` based on VCS markers at *root*."""
197 if (root / ".git").exists():
198 return "git"
199 if (root / ".svn").exists():
200 return "svn"
201 return "none"
202
203
204def find_project_root(

Callers 5

_store_vcs_metadataFunction · 0.85
get_changed_filesFunction · 0.85
get_staged_and_unstagedFunction · 0.85
get_all_tracked_filesFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected