rares (owner)

Fork Of

Forks

Revisions

gist: 71942 Download_button fork
public
Public Clone URL: git://gist.github.com/71942.git
Embed All Files: show embed
git-thanks #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Usage: git-thanks <since>..<until>
#
# All commits on master, ever:
# git-thanks master
#
# All commits on master since the 0.9.0 tag:
# git-thanks 0.9.0..master
 
git log "$1" |
  grep Author: |
  sed 's/Author: \(.*\) <.*/\1/' |
  sort |
  uniq -c |
  sort -rn |
  sed 's/ *\([0-9]\{1,\}\) \(.*\)/\2 (\1)/'
sample output #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$ cd sinatra
$ git-thanks master
Blake Mizerany (270)
Ryan Tomayko (171)
Markus Prinz (28)
Simon Rozet (21)
Chris Schneider (10)
Nicolas Sanguinetti (5)
Nickolas Means (4)
Adam Wiggins (4)
Damian Janowski (3)
raggi (2)
Karel Minarik (2)
Brandon Dimcheff (2)
Ben Bleything (2)
ichverstehe (1)
a_user@mac.com (1)
Widi Harsojo (1)
Victor Hugo Borja (1)
Scott Wisely (1)
Sam Roberts (1)
S. Brent Faulkner (1)
Peter Suschlik (1)
Pat Nakajima (1)
Matias K√§kel√§ (1)
Julio Capote (1)
Jon Crosby (1)
Jeremy Evans (1)
Jack Danger Canty (1)
Igal Koshevoy (1)
Harry Vangberg (1)
Erik Kastner (1)
Dylan Egan (1)
Devlin Daley (1)
Aupajo (1)
Andreas Haller (1)