Skip to content

Instantly share code, notes, and snippets.

@TonyV23
Created August 25, 2023 17:25
This is a python script using the PyDriller library that allows to extract in a repository information like commits, project contributors, modifications, diffs and source code
from pydriller import Repository
for commit in Repository('linkRepo').traverse_commits() :
print (commit.hash)
print (commit.author.name)
print (commit.author_date)
for modification in commit.modifications :
print(modification.file_name +' is changed ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment