Last active
August 29, 2015 14:17
-
-
Save luca020400/f35973ccccbd36940a58 to your computer and use it in GitHub Desktop.
ChangeLog Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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