Advertisement
teknoraver

commit stats

Nov 29th, 2022 (edited)
986
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import sys
  4. import git
  5.  
  6. repo = git.Repo(sys.argv[1])
  7.  
  8. unused = None
  9.  
  10. for commit in repo.iter_commits():
  11.     print(commit.hexsha)
  12.     # uncomment to go 1000x slower
  13.     # unused = commit.stats
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement