fix: 🐛 Fix relative path issue in diff. #29

Former-commit-id: 3b36db0153
This commit is contained in:
Wenxuan Zhang 2019-08-07 16:39:21 +08:00
parent 937bf02588
commit 9003f278df

View file

@ -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
}