MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / git_commit

Function git_commit

server/scripts/profile.py:561–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559
560
561def git_commit() -> str:
562 try:
563 return subprocess.run(["git", "rev-parse", "--short", "HEAD"],
564 capture_output=True, text=True, timeout=10).stdout.strip()
565 except Exception:
566 return "?"
567
568
569def median(xs): # tolerant

Callers 1

mainFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected