Skip to content

Instantly share code, notes, and snippets.

@ehazlett
Created January 29, 2015 17:46
Show Gist options
  • Save ehazlett/6d548085c932e56c5147 to your computer and use it in GitHub Desktop.
Save ehazlett/6d548085c932e56c5147 to your computer and use it in GitHub Desktop.
Generate Changelog
#!/bin/bash
git log --no-merges --pretty="%cn|%s" $1..$2 | sort | awk -F '|' '$1==x{ printf "\n %s", $2; next }{ x=$1; printf "\n\n%s\n %s", $1, $2;} END { printf "\n"}' | tail -n +3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment