Skip to content

Instantly share code, notes, and snippets.

@residualmind
Created July 14, 2017 10:51
Show Gist options
  • Save residualmind/8dee2219e899d0c3b3b2193323019c79 to your computer and use it in GitHub Desktop.
Save residualmind/8dee2219e899d0c3b3b2193323019c79 to your computer and use it in GitHub Desktop.
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