]> granicus.if.org Git - libvpx/commitdiff
tools: author_first_release.sh
authorJohn Koleszar <jkoleszar@google.com>
Fri, 19 Aug 2011 16:04:04 +0000 (12:04 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 19 Aug 2011 19:44:45 +0000 (15:44 -0400)
First version of a simple tool to get a list of the version a user first
contributed to.

Change-Id: I8f1b1fef5343de269c4b6209632c9cedc2cf1a37

tools/author_first_release.sh [new file with mode: 0755]

diff --git a/tools/author_first_release.sh b/tools/author_first_release.sh
new file mode 100755 (executable)
index 0000000..7b0b797
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+##
+## List the release each author first contributed to.
+##
+## Usage: author_first_release.sh [TAGS]
+##
+## If the TAGS arguments are unspecified, all tags reported by `git tag`
+## will be considered.
+##
+tags=${@:-$(git tag)}
+for tag in $tags; do
+  git shortlog -n -e -s $tag |
+      cut -f2- |
+      awk "{print \"${tag#v}\t\"\$0}"
+done | sort -k2  | uniq -f2