Prints out the authors sorted by the percentage of currently active code in a git repository.
$ ./git-alpha
# =>
# Scanning directory '~/src/git-alpha'...
# Alexis Reigel 97/97 (100.00%)
# And now for a maybe a bit more interesting output
$ ./git-alpha ~/src/volt
# =>
# Ryan Stout 29972/39014 (76.82%)
# Gleb Mazovetskiy 3168/39014 (8.12%)
# David Boardman 1767/39014 (4.53%)
# Julian Fahrer 890/39014 (2.28%)
# Elia Schito 543/39014 (1.39%)
# Luke Barbuto 485/39014 (1.24%)
# Penn Su 382/39014 (0.98%)
# Vincent Franco 213/39014 (0.55%)
# Alexandre Daoud 208/39014 (0.53%)
# Matt Hale 207/39014 (0.53%)
# kxcrl 175/39014 (0.45%)
# Rick Carlino 167/39014 (0.43%)
# Matthew Clark 149/39014 (0.38%)
# Michal Zdunek 121/39014 (0.31%)
# Vitaly Tatarintsev 113/39014 (0.29%)
# Brian Glusman 75/39014 (0.19%)
# Viktor Lazarev 62/39014 (0.16%)
# Jason Goldberger 60/39014 (0.15%)
# Joran Kikke 54/39014 (0.14%)
# Neurodynamic 36/39014 (0.09%)
# Jose Añasco 24/39014 (0.06%)
# Mario Zigliotto 23/39014 (0.06%)
# Joiey Seeley 23/39014 (0.06%)
# Jesse Whitham 19/39014 (0.05%)
# Gaelan Steele 18/39014 (0.05%)
# egabrielsen 18/39014 (0.05%)
# askl56 16/39014 (0.04%)
# Gabriel Rios 14/39014 (0.04%)
# Ricky Ng 12/39014 (0.03%)
# Michał Matyas 12/39014 (0.03%)
# Denny Mueller 12/39014 (0.03%)
# Robert H Grayson II 7/39014 (0.02%)
# Bozhidar Batsov 7/39014 (0.02%)
# Большов Андрей 6/39014 (0.02%)
# DFYX 6/39014 (0.02%)
# Gustavo Villa 5/39014 (0.01%)
# George 5/39014 (0.01%)
# Andrew Cantino 5/39014 (0.01%)
# Ilya Bylich 4/39014 (0.01%)
# Strand McCutchen 3/39014 (0.01%)
# TJ Koblentz 1/39014 (0.00%)
# René Föhring 1/39014 (0.00%)
# Peter Indiola 1/39014 (0.00%)
# Jeehoo Ahn 1/39014 (0.00%)
# huochunpeng 1/39014 (0.00%)
# Dillon Benson 1/39014 (0.00%)
# Denis 1/39014 (0.00%)
# Dan Erikson 1/39014 (0.00%)
# Anuja Joshi 1/39014 (0.00%)
You can create a git alias easily. Just add the following line in your
~/.gitconfig
.
[alias]
alpha = !~/bin/git-alpha
Then, in your current git repository, just use it like so:
$ git alias
Copyright (C) 2015 Alexis Reigel
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.