2017-04-25 14:18:29 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
git log --graph --color=always \
|
|
|
|
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
|
2017-04-26 20:26:29 -07:00
|
|
|
gui-fzf --ansi --no-sort --tiebreak=index --bind=ctrl-s:toggle-sort \
|
2017-04-25 14:18:29 -07:00
|
|
|
--bind "ctrl-m:execute:
|
|
|
|
(grep -o '[a-f0-9]\{7\}' | head -1 |
|
|
|
|
xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF'
|
|
|
|
{}
|
|
|
|
FZF-EOF"
|