blob: 7b0b79721253ee5f77586c276e22f951389490e5 [file] [log] [blame]
John Koleszar2f964ba2011-08-19 12:04:04 -04001#!/bin/bash
2##
3## List the release each author first contributed to.
4##
5## Usage: author_first_release.sh [TAGS]
6##
7## If the TAGS arguments are unspecified, all tags reported by `git tag`
8## will be considered.
9##
10tags=${@:-$(git tag)}
11for tag in $tags; do
12 git shortlog -n -e -s $tag |
13 cut -f2- |
14 awk "{print \"${tag#v}\t\"\$0}"
15done | sort -k2 | uniq -f2