in analytics/github_analyze.py [0:0]
def _run_git_log(self, revision_range) -> List[GitCommit]:
log = _check_output(['git', '-C', self.repo_dir, 'log',
'--format=fuller', '--date=unix', revision_range, '--', '.']).split("\n")
rc: List[GitCommit] = []
cur_msg: List[str] = []
for line in log:
if line.startswith("commit"):
if len(cur_msg) > 0:
rc.append(parse_fuller_format(cur_msg))
cur_msg = []
cur_msg.append(line)
if len(cur_msg) > 0:
rc.append(parse_fuller_format(cur_msg))
return rc