MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / index_has_file

Function index_has_file

scripts/check_article_quality.py:238–245  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

236
237
238def index_has_file(path: Path) -> bool:
239 result = subprocess.run(
240 ["git", "cat-file", "-e", f":{path.as_posix()}"],
241 check=False,
242 stdout=subprocess.PIPE,
243 stderr=subprocess.PIPE,
244 )
245 return result.returncode == 0
246
247
248def repo_relative(path: Path, root: Path) -> Path | None:

Callers 1

local_image_issueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected