Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save residualmind/fa70badb4580e42a69fe36f302b99aae to your computer and use it in GitHub Desktop.
Save residualmind/fa70badb4580e42a69fe36f302b99aae to your computer and use it in GitHub Desktop.
changelog
changelog() {
name=$(basename `git rev-parse --show-toplevel`)
lasttag=`git describe --tags --abbrev=0`
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