Created
August 12, 2014 09:30
-
-
Save knatten/8df8d3c0f59d3aa1d538 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function list { | |
for branch in `git branch --remote | awk '{print $1}'`; do | |
last=`git log $branch | grep Author | head -1 | awk '{print $NF}'` | |
echo $last $branch | |
done | |
} | |
list | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Surely you mean
last="$(git show "$branch" -s --pretty=format=%ce)"
?