Joined September 2012
·
Posted to
Find Your Most Prolific Contributors
over 1 year
ago
This only works if your file structure has never changed, as git ls-files only shows those files that exist in the current checkout. So if someone made a lot of changes to a file, but that file was subsequently deleted, it won't show up. Even worse, if the file was just renamed, all the changes will show up as from the person who renamed the file! I wonder how hard it would be to write a version of this that uses git's pickaxe feature, which avoids these shortcomings.
Achievements
87 Karma
0 Total ProTip Views
Altruist
Increase developer well-being by sharing at least 20 open source projects
Raven
Have at least one original repo where some form of shell script is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python 3
Have at least three original repos where Python is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Bear
Have at least one original repo where Objective-C is the dominant language
T-Rex
Have at least one original repo where C is the dominant language
Why do you coerce them to integers? Then max(1, 1.5) will return 1.