Show top n most active committers in a git repository -
i use git shortlog -s -n --all
show contributors in git repository.
18756 6604 else 6025 etc 5503 committer 5217 , on
i wonder if there option show first n contributors. example:
git shortlog -s -n --all --some-option 3
and output be:
18756 6604 else 6025 etc
a solution use unix pipes , head
:
git shortlog -s -n --all | head -3
...but if there built-in
there isn't way of doing native git shortlog
command. it's used generate contributors list between releases rather top n statistic.
your approach of using pipes efficient way of solving problem; use script or git alias same thing.
Comments
Post a Comment