8 lines
244 B
Plaintext
8 lines
244 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# Fuzzy Git commits browser.
|
||
|
|
||
|
git log --no-decorate --format=short | awk '/^commit|^ /' |
|
||
|
sed 's/ //g; s/commit //g' | paste -d " " - - | fzf --preview \
|
||
|
'git log -n 1 {1}; printf "\n" && git diff --color=always {1}~ {1}'
|