No need to strip 'remote/' from branch

main
Junegunn Choi 2 years ago
parent 9d2e2b0b26
commit 27aa7a3202
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -118,8 +118,7 @@ _fzf_git_branches() {
--header $'CTRL-O (open in browser)\n\n' \
--bind "ctrl-o:execute-silent:bash $__fzf_git branch {}" \
--preview 'git log --oneline --graph --date=short --color=always --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1)' |
sed 's/^..//' | cut -d' ' -f1 |
sed 's#^remotes/##'
sed 's/^..//' | cut -d' ' -f1
}
_fzf_git_tags() {

Loading…
Cancel
Save