Created
May 10, 2011 21:31
-
-
Save dpritchett/965421 to your computer and use it in GitHub Desktop.
Simulate git log --oneline
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
# grep -vE removes lines matching the following expression | |
# sed is trimming leading whitespace | |
# awk is prepending "* " to each line ($0 is the entire line) | |
git log | grep -vE '^(Author|Date|commit|\w*$)' | sed 's/^\s*//g' | awk '{print "* " $0}' | head -10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment