mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 15:26:16 -04:00
Improve gd command
Now gd works in subdirectory of repo.
Former-commit-id: 576891ac7f
This commit is contained in:
parent
4269df5b4a
commit
24183eb22d
|
|
@ -38,7 +38,7 @@ glo() {
|
|||
gd() {
|
||||
inside_work_tree || return 1
|
||||
local cmd="git diff --color=always -- {} $emojify $fancy"
|
||||
git ls-files --modified |
|
||||
git ls-files --modified $(git rev-parse --show-toplevel)|
|
||||
wfxr::fzf -e -0 \
|
||||
--bind="enter:execute($cmd |LESS='-R' less)" \
|
||||
--preview="$cmd"
|
||||
|
|
|
|||
Loading…
Reference in a new issue