MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / git_path

Function git_path

pre_commit/git.py:205–207  ·  view source on GitHub ↗
(name: str, repo: str = '.')

Source from the content-addressed store, hash-verified

203
204
205def git_path(name: str, repo: str = '.') -> str:
206 _, out, _ = cmd_output('git', 'rev-parse', '--git-path', name, cwd=repo)
207 return os.path.join(repo, out.strip())
208
209
210def check_for_cygwin_mismatch() -> None:

Callers

nothing calls this directly

Calls 1

cmd_outputFunction · 0.90

Tested by

no test coverage detected