I have got a repository with more than 10.000 entries. I dont want to take care about renamed files. What would be the best approach to count the number of changes done to a file?
My idea was to iterate over all commits and comparing the target.sha of the file with its parent commit. If the SHA is the same, the file was not changed. If the SHA is different a file change was found, meaning this is a new version.
foreach(Commit c in repository.Commits)
{
//DO THE WORK
}
This takes some time, but was the fastest i could get for now.
Maybe someone has a better idea?