Created
May 5, 2015 18:08
-
-
Save LBRapid/34d331f5688b5332816c to your computer and use it in GitHub Desktop.
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
# fshow - git commit browser | |
fshow() { | |
local out sha q | |
while out=$( | |
git log --decorate=short --graph --oneline --color=always | | |
fzf --ansi --multi --no-sort --reverse --query="$q" --print-query); do | |
q=$(head -1 <<< "$out") | |
while read sha; do | |
[ -n "$sha" ] && git show --color=always $sha | less -R | |
done < <(sed '1d;s/^[^a-z0-9]*//;/^$/d' <<< "$out" | awk '{print $1}') | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment