Created
March 27, 2013 14:07
-
-
Save searls/5254409 to your computer and use it in GitHub Desktop.
A git command for logging all the commits on the current branch that are not on your first master as of your nearest common ancestor. Additional git-log flags come along for the ride (e.g. `git unmaster --oneline`)
This file contains hidden or 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
#!/bin/sh | |
git log HEAD ^$(git merge-base master HEAD) --no-merges $1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You probably want
which would allow me to pass more than one
git-log
argument.