Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add calcualation for locally cloned repositories #27

Open
mathias-nyman opened this issue Oct 13, 2021 · 0 comments
Open

Add calcualation for locally cloned repositories #27

mathias-nyman opened this issue Oct 13, 2021 · 0 comments

Comments

@mathias-nyman
Copy link
Contributor

I don't know if this is something that's needed generally, but I'm leaving this here for posterity. At least a one-liner documenting the calculation logic would be convenient if found in the README.md. For example like this, which calculates the amount of contributors in all repositories under and including the current working directory:
find . -name ".git" | xargs -I {} git --git-dir {} log --since="90 days ago" --pretty=format:%ae | sort | uniq | wc -l

With this oneliner for example, one can clearly see that you only calculate contributors on the default branch, not all branches.

But a caveat would be git submodules; in your current calculation logic you do not calculate code contributors in submodules within a repository, although that oneliner would do so..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant