Skip to content

Instantly share code, notes, and snippets.

View jhuttner's full-sized avatar

Joseph Huttner jhuttner

View GitHub Profile
@jhuttner
jhuttner / git-remote-authors
Last active August 29, 2015 13:56
git-remote-authors
#!/bin/bash
# git-remote-authors
#
# Print recent commit info for all remote branches.
#
# Place this script in your PATH, chmod +x it, and git will allow you to magically do:
# $ git remote-authors (num_commits_to_lookback)
#
# Author: devops@appnexus.com
@jhuttner
jhuttner / git-who-owns-what
Last active August 29, 2015 13:56
git-who-owns-what
#!/bin/bash
# git-who-owns-what
#
# Requires: git-remote-authors: https://gist.github.com/jhuttner/8795653
#
# Print the branches that each user was the last committer for.
#
# Place this script in your PATH, chmod +x it, and git will allow you to magically do:
# $ git who-owns-what
@jhuttner
jhuttner / git-stats
Created March 20, 2014 15:05
Show commits stats by author
#!/bin/bash
comm -12 <(git ls-files | sort -n) <(find . -type f | sed -e 's/^\.\///g' | sort -n) | xargs -I {} git blame {} | perl -n -e '/^.*\((.*?)\s*[\d]{4}-[\d]{2}/; print $1,"\n"' | sort -f | uniq -c | sort -n

Keybase proof

I hereby claim:

  • I am jhuttner on github.
  • I am jhuttner (https://keybase.io/jhuttner) on keybase.
  • I have a public key whose fingerprint is 29BC 9453 851C 2D7C 6505 1901 32F2 1478 286C 071A

To claim this, I am signing this object: