erikbern / git-of-theseus

Analyze how a Git repo grows over time
https://erikbern.com/2016/12/05/the-half-life-of-code.html
Apache License 2.0
2.56k stars 85 forks source link

Statistics are incomplete in multi-root repositories #64

Open uekstrom opened 6 years ago

uekstrom commented 6 years ago

I have a large repository that comes from a merge of several (four or more) old git repos. In this case only the first parent is followed by analyze.py (from the line "i, commit = i+1, commit.parents[0]"), and the other parents are skipped. Would it be straight forward to recurse down on each parent in this section?

erikbern commented 6 years ago

Not sure, seems tricky since for a number of reasons GoT assumes a linear history