dotfiles/modules/common/shell/fish/functions/git-commits.fish
2023-02-20 20:37:37 -05:00

9 lines
254 B
Fish

set commitline (git log \
--pretty="format:%C(auto)%ar %h%d %s" \
| fzf \
--height 50% \
--preview 'git show --color=always (echo {} | cut -d" " -f4)' \
)
and set commit (echo $commitline | cut -d" " -f4)
and echo $commit