Skip to content

Instantly share code, notes, and snippets.

@d
Last active December 14, 2015 15:59
Show Gist options
  • Save d/5112267 to your computer and use it in GitHub Desktop.
Save d/5112267 to your computer and use it in GitHub Desktop.
modified dot dot dot
#!/bin/bash
set -e -u -x
rev1=${1:-origin/master}
rev2=${2:-HEAD}
git log --graph --decorate --oneline $rev1 $rev2 --not $(git rev-list --parents --max-count 1 $(git merge-base $rev1 $rev2) | cut -d" " -f2- )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment