Get contents of a path within a specific commit
(repo, commit, path)
| 34 | |
| 35 | |
| 36 | def get_contents(repo, commit, path): |
| 37 | """Get contents of a path within a specific commit""" |
| 38 | if type(commit) == Commit: |
| 39 | commit = commit.hexsha |
| 40 | return repo.git.show('{}:{}'.format(commit, path)) |
no outgoing calls
no test coverage detected