Fix preview for deleted files in gsp

This commit is contained in:
sandroid 2024-01-26 11:17:35 +01:00
parent 0a8a70bc20
commit f9ba26aeaf
No known key found for this signature in database
GPG key ID: 91418C9982B8B76E

View file

@ -405,7 +405,7 @@ _forgit_stash_show() {
_forgit_stash_push_preview() {
if _forgit_is_file_tracked "$1"; then
git diff --color=always "$1" | $_forgit_diff_pager
git diff --color=always -- "$1" | $_forgit_diff_pager
else
git diff --color=always /dev/null "$1" | $_forgit_diff_pager
fi