Skip to content

Instantly share code, notes, and snippets.

@youpy
Last active December 25, 2015 01:29
Show Gist options
  • Save youpy/6895345 to your computer and use it in GitHub Desktop.
Save youpy/6895345 to your computer and use it in GitHub Desktop.
A shell script to show specific revision using percol
#!/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