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

Function head_rev

pre_commit/git.py:170–172  ·  view source on GitHub ↗
(remote: str)

Source from the content-addressed store, hash-verified

168
169
170def head_rev(remote: str) -> str:
171 _, out, _ = cmd_output('git', 'ls-remote', '--exit-code', remote, 'HEAD')
172 return out.split()[0]
173
174
175def has_diff(*args: str, repo: str = '.') -> bool:

Callers

nothing calls this directly

Calls 1

cmd_outputFunction · 0.90

Tested by

no test coverage detected