MCPcopy Create free account
hub / github.com/Persper/code-analytics / get_contents

Function get_contents

persper/graphs/git_tools.py:30–32  ·  view source on GitHub ↗

Get contents of a path within a specific commit

(repo, commit, path)

Source from the content-addressed store, hash-verified

28
29
30def get_contents(repo, commit, path):
31 """Get contents of a path within a specific commit"""
32 return repo.git.show('{}:{}'.format(commit.hexsha, path))

Callers 6

_analyze_commitMethod · 0.90
_get_xml_rootMethod · 0.90
on_addMethod · 0.90
on_deleteMethod · 0.90
on_renameMethod · 0.90
on_modifyMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected