MCPcopy Create free account
hub / github.com/comaps/comaps / git_log

Function git_log

tools/python/cherry_picking_issue.py:51–59  ·  view source on GitHub ↗
(commit_range)

Source from the content-addressed store, hash-verified

49
50
51def git_log(commit_range):
52 result = subprocess.run(
53 ["git", "log", "--oneline", "--reverse", commit_range],
54 capture_output=True, text=True,
55 )
56 if result.returncode != 0:
57 print(f"git log failed: {result.stderr.strip()}", file=sys.stderr)
58 sys.exit(1)
59 return result.stdout.strip().splitlines()
60
61
62def format_plain(commits, commit_range, out):

Callers 1

mainFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected