Skip to content

Instantly share code, notes, and snippets.

@d
Last active December 14, 2015 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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