8 lines
244 B
Plaintext
Raw Normal View History

2020-05-16 20:46:04 +02:00
#!/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}'