Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (7 sloc) 224 Bytes
#!/usr/bin/env bash
git log \
--pretty=format:log --graph --pretty=format:'%h'\
--abbrev-commit\
$(git for-each-ref --format='%(upstream:short)' $(git symbolic-ref HEAD))..HEAD\
|sed 's/^\* //'\
|tail -1