Skip to content

Instantly share code, notes, and snippets.

@electrum
Created May 3, 2017 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electrum/c91d060260312a0e7969bfdeba4f727f to your computer and use it in GitHub Desktop.
Save electrum/c91d060260312a0e7969bfdeba4f727f to your computer and use it in GitHub Desktop.
#!/bin/sh -eu
CURRENT=$1
git log --format='%<|(21)%cn %<|(34)%ct %<|(48)%h %s' $CURRENT.. |
grep -vF '[maven-release-plugin]' | sort | cut -c1-21,34- |
awk '
{
if (NR > 1) {
name = substr($0, 1, 21)
if (name != current) {
print "## " name
}
{
current = name
print "- [ ] " substr($0, 22)
}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment