MCPcopy
hub / github.com/github/awesome-copilot / get_git_commits

Function get_git_commits

skills/acquire-codebase-knowledge/scripts/scan.py:323–336  ·  view source on GitHub ↗

Get recent git commits.

()

Source from the content-addressed store, hash-verified

321
322
323def get_git_commits() -> List[str]:
324 """Get recent git commits."""
325 try:
326 result = subprocess.run(
327 ["git", "log", "--oneline", "-n", str(RECENT_COMMITS_LIMIT)],
328 capture_output=True,
329 text=True,
330 cwd=Path.cwd()
331 )
332 if result.returncode == 0:
333 return result.stdout.strip().split('\n') if result.stdout.strip() else []
334 return []
335 except Exception:
336 return []
337
338
339def get_git_churn() -> List[str]:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected