Home | History | Annotate | Download | only in tools
      1 #!/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 ##
     10 tags=${@:-$(git tag)}
     11 for tag in $tags; do
     12   git shortlog -n -e -s $tag |
     13       cut -f2- |
     14       awk "{print \"${tag#v}\t\"\$0}"
     15 done | sort -k2  | uniq -f2
     16