-
-
Save youpy/6895345 to your computer and use it in GitHub Desktop.
A shell script to show specific revision using percol
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 | |
# http://hail2u.net/blog/software/easy-to-read-git-log.html | |
git log --graph --pretty='format:%h%d %s %an, %ar' $1 \ | |
| percol \ | |
| sed 's/^[ \|\*]*//' \ | |
| awk '{print $1}' \ | |
| xargs git show |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment