Last Updated: February 25, 2016
· adumont

Android AOSP Log from a tag to HEAD

Oneliner to get the log from tag 4.2.1r1 to HEAD, on all AOSP projects that have tag 4.2.1r1 and have moved forward.

repo forall -c "git tag -l | grep -q 4.2.1_r1 && ( git lol -1 | grep -q 'tag: android-4.2_r1' || (pwd; echo; git lo android-4.2.1_r1..HEAD | sed -e 's/^/   /'; echo)  )"

with (extract from my ~/.gitconfig):

alias.lo=log --pretty=oneline --abbrev-commit --no-merges --graph --decorate --pretty=oneline --abbrev-commit