Permalink
Browse files

add `git thanks`

  • Loading branch information...
1 parent 8a404e4 commit ca9fbe0d6ae46b8894d31346947b23cc29c09d10 @rtomayko rtomayko committed with Feb 28, 2009
Showing with 17 additions and 0 deletions.
  1. +16 −0 bin/git-thanks
  2. +1 −0 gitconfig
View
@@ -0,0 +1,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)/'
View
@@ -7,6 +7,7 @@
co = checkout
put = push origin HEAD
track = !git-track
+ thanks = !git-thanks
up = !git pull --rebase && git push
ignored = "!git ls-files --others --exclude-standard"
nb = checkout -b

1 comment on commit ca9fbe0

Contributor

rtomayko commented on ca9fbe0 Mar 5, 2009

Thanks for the attribution! :)

Please sign in to comment.