Created
April 9, 2013 22:38
-
-
Save robmiller/5350041 to your computer and use it in GitHub Desktop.
A git alias to find out what changes were introduced by the last merge.
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
# usage, e.g.: | |
# git difftool `git last-merge` | |
# or: | |
# git log `git last-merge` | |
last-merge = "!echo $(git log -1 --merges --pretty=format:%P | cut -d' ' -f1)..$(git log -1 --merges --pretty=format:%P | cut -d' ' -f2)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment