mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
fix: 🐛 Fix relative path issue in diff. #29
Former-commit-id: 3b36db0153
This commit is contained in:
parent
937bf02588
commit
9003f278df
|
|
@ -43,7 +43,7 @@ forgit::diff() {
|
|||
+m -0 --preview=\"$cmd\" --bind=\"enter:execute($cmd |LESS='-R' less)\"
|
||||
$FORGIT_DIFF_FZF_OPTS
|
||||
"
|
||||
eval "git diff --name-only $commit -- ${files[*]}"|
|
||||
eval "git diff --name-only --relative $commit -- ${files[*]}"|
|
||||
FZF_DEFAULT_OPTS="$opts" fzf
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue