Implemented the get_commit_authors function to retrieve the authors for each commit.

This commit is contained in:
Paul Gauthier (aider) 2024-07-07 13:10:33 -03:00
parent e8a5af089f
commit 1f57e24b47

View file

@ -31,6 +31,10 @@ def run(cmd):
def get_commit_authors(commits):
commit_to_author = dict()
for commit in commits:
author = run(["git", "show", "-s", "--format=%an <%ae>", commit]).strip()
commit_to_author[commit] = author
return commit_to_author
def main():
@ -43,10 +47,7 @@ def main():
dump(commits)
authors = get_commit_authors(commits)
#text = run(['git', 'blame', f'{args.tag}..HEAD', '--', 'aider/main.py'])
#text = text.splitlines()
dump(authors)