Skip to content

Instantly share code, notes, and snippets.

@localshred
Created January 4, 2012 18:47
Show Gist options
  • Save localshred/1561424 to your computer and use it in GitHub Desktop.
Save localshred/1561424 to your computer and use it in GitHub Desktop.
Check for out-of-date branches in a git-flow style branch system
function cherry_compare() {
echo 'Out-of-date branch check'
echo '[master -> qa]'
git cherry -v qa master
echo '[qa -> stage]'
git cherry -v stage qa
echo '[stage -> stable]'
git cherry -v stable stage
}
$ cherry_compare
Out-of-date branch check
[master -> qa]
... commits in master not in qa ...
[qa -> stage]
... commits in qa not in stage ...
[stage -> stable]
... commits in stage not in stable ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment