2017-04-25 14:18:29 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-12-05 22:39:10 -08:00
|
|
|
git log --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | \
|
2018-03-23 12:29:50 -07:00
|
|
|
sk --ansi --no-sort --tiebreak=index --bind=ctrl-s:toggle-sort \
|
|
|
|
--bind "ctrl-m:execute:
|
2017-05-15 11:41:20 -07:00
|
|
|
(grep -o '[a-f0-9]\{7\}' | head -1 |
|
2018-03-23 12:29:50 -07:00
|
|
|
xargs -I % sh -c 'git show --color=always % | less -R') << 'SK-EOF'
|
2017-05-15 11:41:20 -07:00
|
|
|
{}
|
2018-03-23 12:29:50 -07:00
|
|
|
SK-EOF"
|