Created
July 14, 2017 10:51
-
-
Save residualmind/8dee2219e899d0c3b3b2193323019c79 to your computer and use it in GitHub Desktop.
This file contains 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
changelog() { | |
name=$(basename `git rev-parse --show-toplevel`) | |
lasttag=`git tag -l | sort -V | tail -${1-1} | head -1` | |
echo "$name - changes since $lasttag:\n" | |
git --no-pager log "$lasttag.." --pretty=format:' + %s' --reverse; | |
echo "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment