Created
August 25, 2023 17:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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