Created
June 27, 2014 06:51
-
-
Save jameswomack/9e19283bde4b9fce8d20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merges-introducing() { | |
local introducing; | |
if introducing=`git rev-parse $1`; then | |
shift | |
git rev-list --ancestry-path --parents --reverse $introducing...$2 \ | |
| awk '{seen[$1]=1} NR>1 && !seen[$2] {print $1}' \ | |
| xargs git show --oneline --no-patch | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment