Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created May 25, 2013 13:05
Show Gist options
  • Save marcelcaraciolo/5648989 to your computer and use it in GitHub Desktop.
Save marcelcaraciolo/5648989 to your computer and use it in GitHub Desktop.
class GitRepository(Repository):
"""
Read some basic statistics about a git repository
"""
def __init__(self, repo_path):
self.repo_path = repo_path
self.git = _git_command(self.repo_path)
(self.shas, self.messages,
self.timestamps, self.authors) = self._parse_commit_log()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment