Skip to content

Instantly share code, notes, and snippets.

@antdking
Last active August 29, 2015 14:10
Show Gist options
  • Save antdking/6c6d0f5040dc733c8c91 to your computer and use it in GitHub Desktop.
Save antdking/6c6d0f5040dc733c8c91 to your computer and use it in GitHub Desktop.
export FROM=android-5.0.1_r1
export TO=android-5.0.2_r1
export DIFF="`pwd`/diff"
rm -f $DIFF
repo forall -c '
d=$(git diff $FROM $TO)
if [ "$d" ]; then
echo -e "#\n##\n# diffing $REPO_PROJECT\n##\n#" >> $DIFF
echo "$d" >> $DIFF
fi
'
export LOG="`pwd`/log"
rm -f $LOG
repo forall -c '
l=$(git log --pretty=oneline $FROM...$TO)
if [ "$l" ]; then
echo -e "#\n##\n# logging $REPO_PROJECT\n##\n#" >> $LOG
echo "$l" >> $LOG
fi
'
export FULL="`pwd`/full_log"
rm -f $FULL
repo forall -c '
l=$(git log $FROM...$TO)
if [ "$l" ]; then
echo -e "#\n##\n# logging $REPO_PROJECT\n##\n#" >> $FULL
echo "$l" >> $FULL
fi
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment