fixed git stash show

Former-commit-id: 5b839bc34c
This commit is contained in:
Christopher Apple 2020-04-09 09:22:16 -07:00
parent 095327b47d
commit 566b6470d0

View file

@ -163,7 +163,7 @@ end
# git stash viewer
function forgit::stash::show
forgit::inside_work_tree || return 1
set cmd "git stash show (echo {}| cut -d: -f1) --color=always --ext-diff | $forgit_pager"
set cmd "echo {} |cut -d: -f1 |xargs -I% git stash show --color=always --ext-diff % |$forgit_pager"
set opts "
$FORGIT_FZF_DEFAULT_OPTS
+s +m -0 --tiebreak=index --bind=\"enter:execute($cmd |env LESS='-R' less)\"