Skip to content

Instantly share code, notes, and snippets.

@carlos8f
Forked from anonymous/changelog.sh
Created July 3, 2011 21:46
Show Gist options
  • Save carlos8f/1062645 to your computer and use it in GitHub Desktop.
Save carlos8f/1062645 to your computer and use it in GitHub Desktop.
Git Changelog
#!/bin/bash
# Generates changelog day by day
echo "CHANGELOG"
echo "====================================="
git log --no-merges --format="%cd" --date=short $1 | sort -u -r | while read DATE ; do
echo
echo $DATE
echo "---------------------------------"
git log --no-merges --format=" * %s%+b" --since="$DATE 00:00:00" --until="$DATE 24:00:00" | sed -e '/ \* /!s/^/ /g'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment