diff --git a/forgit.plugin.sh b/forgit.plugin.sh index ae5c839..7da37ae 100755 --- a/forgit.plugin.sh +++ b/forgit.plugin.sh @@ -62,7 +62,7 @@ __forgit_get_git_color() { # git commit browser __forgit_log() { __forgit_inside_work_tree || return 1 - local cmd="echo {} |grep -o '[a-f0-9]\{7\}' |head -1 |xargs -I% git show --color=always % $forgit_emojify $forgit_fancy" + local cmd="echo {} |grep -o '[a-f0-9]\{7\}' |head -1 |xargs -I% git show --color=always % $@ $forgit_emojify $forgit_fancy" eval "git log --graph --color=always --format='%C(auto)%h%d %s %C(black)%C(bold)%cr' $@ $forgit_emojify" | __forgit_fzf +s +m --tiebreak=index \ --bind="enter:execute($cmd |LESS='-R' less)" \ diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index a4b56ef..bc53dd6 100644 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -55,7 +55,7 @@ forgit::inside_work_tree() { # git commit viewer forgit::log() { forgit::inside_work_tree || return 1 - local cmd="echo {} |grep -o '[a-f0-9]\{7\}' |head -1 |xargs -I% git show --color=always % $forgit_emojify $forgit_fancy" + local cmd="echo {} |grep -o '[a-f0-9]\{7\}' |head -1 |xargs -I% git show --color=always % $@ $forgit_emojify $forgit_fancy" eval "git log --graph --color=always --format='%C(auto)%h%d %s %C(black)%C(bold)%cr' $@ $forgit_emojify" | forgit::fzf +s +m --tiebreak=index \ --bind="enter:execute($cmd |LESS='-R' less)" \