MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / git_hash

Function git_hash

scripts/utils/check-dist.py:47–48  ·  view source on GitHub ↗
(data: bytes)

Source from the content-addressed store, hash-verified

45
46
47def git_hash(data: bytes) -> str:
48 return hashlib.sha1(b"blob %d\0" % len(data) + data).hexdigest()
49
50
51def committed_files() -> dict[str, Committed]:

Callers 1

check_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected