Get Rept

0

votes
0

answer
4

views

How to get the directory git detail from repo in GitPython?

I would like to get the number of commit of a directory(called module) from a repo(project) in GitPython. > print('before',modulePath) > repo = Repo(modulePath) > print(len(list(repo.iter_commits()))) When I'm trying to print the directory amount of commits, It says the repo is...
Get Rept