Skip to content

Instantly share code, notes, and snippets.

@luca020400
Last active August 29, 2015 14:17
Show Gist options
  • Save luca020400/f35973ccccbd36940a58 to your computer and use it in GitHub Desktop.
Save luca020400/f35973ccccbd36940a58 to your computer and use it in GitHub Desktop.
ChangeLog Script
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "You have to specify old & new release"
exit 1
fi
if python --version | grep "3." > /dev/null 2>&1; then
echo "You have to switch to Python 2"
exit 1
fi
export aospdir=$(pwd | sed 's/\//\\\//g')
export or=$1
export nr=$2
repo forall -c '
project=$(pwd | sed "s/$aospdir\///")
echo "Project : $project"
if git rev-parse $or >/dev/null 2>&1; then
git log --oneline --no-merges $or..$nr
else
git log --oneline --no-merges $nr
fi
' | cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment