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

Function _rev_exists

pre_commit/commands/hook_impl.py:116–117  ·  view source on GitHub ↗
(rev: str)

Source from the content-addressed store, hash-verified

114
115
116def _rev_exists(rev: str) -> bool:
117 return not subprocess.call(('git', 'rev-list', '--quiet', rev))
118
119
120def _pre_push_ns(

Callers 1

_pre_push_nsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected