Skip to content

Instantly share code, notes, and snippets.

@major
Created March 14, 2012 04:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save major/2034011 to your computer and use it in GitHub Desktop.
Save major/2034011 to your computer and use it in GitHub Desktop.
Differences in commits between two branches (on rackerhacker.com)
MASTER=`git log --pretty=format:'%H' master | sort`
DEV=`git log --pretty=format:'%H' development | sort`
for i in `diff <(echo "${MASTER}") <(echo "${DEV}") | grep '^>' | sed 's/^> //'`;
do
git --no-pager log -1 --oneline $i;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment