Skip to content

Instantly share code, notes, and snippets.

@TonyV23
Created August 25, 2023 17:25
Show Gist options
  • Save TonyV23/06ab01dcff68bde8f247932a513cc966 to your computer and use it in GitHub Desktop.
Save TonyV23/06ab01dcff68bde8f247932a513cc966 to your computer and use it in GitHub Desktop.
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