3 ms·
This seems like a very good idea. Only if we can scroll through the commit hashes and see the preview of commit with help of fzf or something similar, it will
by girishso 5y ago
This seems like a very good idea. Only if we can scroll through the commit hashes and see the preview of commit with help of fzf or something similar, it will be totally awesome.
- max_hammer 5y agoI use maggit and can scroll commit log using `ll` You can also try `lazygit` it's a TUI written in Go
- arxanas 5y agoI would like to add fzf-style interfaces to checking out more things. Hopefully, they could index both the commit message and the commit contents when searching.
- girishso 5y agoTotally possible, I've following helper in my .zshrc # fshow - git commit browser fshow() { git log --graph --color=always HEAD \ --format="%C(auto)%h%d %s %C(blue)(%aN) %C(black)%C(bold)%cr" "$@" | fzf --ansi --no-sort --reverse --tiebreak=index --bind=ctrl-s:toggle-sort \ --bind "j:down,k:up,q:abort,ctrl-m:execute: (grep -o '[a-f0-9]\{7\}' | head -1 | xargs -I % sh -c 'git show --color=always % | less -R') << 'FZF-EOF' {} FZF-EOF" }