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

Function committed_files

scripts/utils/check-dist.py:51–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def committed_files() -> dict[str, Committed]:
52 tree = subprocess.run(["git", "ls-tree", "-rz", "HEAD"], check=True, capture_output=True, text=True).stdout
53 files: dict[str, Committed] = {}
54 for entry in tree.split("\0"):
55 # not a link (120000) or a submodule (160000)
56 if match := re.fullmatch(r"(100\d+) blob (\w+)\t(.*)", entry, re.DOTALL):
57 files[match[3]] = Committed(match[2], executable=match[1] == "100755")
58 return files
59
60
61def version_bounds(text: str) -> str:

Callers 1

mainFunction · 0.85

Calls 2

CommittedClass · 0.85
runMethod · 0.45

Tested by

no test coverage detected