MCPcopy Create free account
hub / github.com/apache/solr / short_sha

Function short_sha

dev-tools/scripts/logchange.py:64–69  ·  view source on GitHub ↗
(git_root)

Source from the content-addressed store, hash-verified

62
63
64def short_sha(git_root):
65 r = subprocess.run(
66 ["git", "rev-parse", "--short", "HEAD"],
67 cwd=git_root, capture_output=True, text=True, check=True,
68 )
69 return r.stdout.strip()
70
71
72def has_staged_changes(git_root, paths=None):

Callers 1

cmd_prepareFunction · 0.85

Calls 2

stripMethod · 0.80
runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…