Closed LintaoAmons closed 11 months ago
:DiffviewOpen <REV>
gives you the diff between <REV>
and the working tree. If the file was deleted in <REV>
, and it's still deleted, then the diff between them is the empty set.
The equivalent of doing git show <REV>
is :DiffviewOpen <REV>^!
. This describes the range of a single commit.
For more info on Git's rev syntax, see "SPECIFYING REVISIONS" and "SPECIFYING RANGES" under $ man git-rev-parse
.
Thx~ Now I understand more about git!
But How do you think about the idea to add a Command DiffviewShow <REF>
?
Description
Here's the content by
git show <commit-sha>
But it didn't show in the
DiffviewOpen <commit-sha>
Expected behavior
Show the same changes even it's a deletion
Actual behavior
The deleted files are missing
Steps to reproduce
DiffviewOpen <commit-sha>
Health check
should be fine
Log info
Relevant info from
``` ############################ ### PUT LOG CONTENT HERE ### ############################ ```:DiffviewLog
Neovim version
Operating system and version
Mac
Minimal config
No response