MCPcopy Index your code
hub / github.com/emscripten-core/emsdk / git_recent_commits

Function git_recent_commits

emsdk.py:777–782  ·  view source on GitHub ↗
(repo_path, n=20)

Source from the content-addressed store, hash-verified

775
776
777def git_recent_commits(repo_path, n=20):
778 returncode, stdout, _stderr = run_get_output([GIT(), 'log', '-n', str(n), '--pretty="%H"'], cwd=repo_path)
779 if returncode == 0:
780 return stdout.strip().replace('\r', '').replace('"', '').split('\n')
781 else:
782 return []
783
784
785def get_git_remotes(repo_path):

Callers 1

Calls 2

run_get_outputFunction · 0.85
GITFunction · 0.85

Tested by

no test coverage detected