mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
Implemented the get_commit_authors
function to retrieve the authors for each commit.
This commit is contained in:
parent
e8a5af089f
commit
1f57e24b47
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue