mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 23:22:57 +00:00
11 lines
311 B
Fish
11 lines
311 B
Fish
function git-commits
|
|
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
|
|
end
|