Skip to content

Commit

Permalink
Fix preview for deleted files in _forgit_stash_push (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandr01d authored Mar 30, 2024
1 parent 032b52f commit 7690364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-forgit
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,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
Expand Down

0 comments on commit 7690364

Please sign in to comment.