Closed grawity closed 6 months ago
In all current versions, when the cursor is over a diff belonging to a deleted file, i.e. where git shows
--- a/foo.c +++ /dev/null
the window statusbar shows [diff] Changes to '/dev/null' and pressing f attempts to open /dev/null as a blob.
[diff] Changes to '/dev/null'
Would it be possible for view-blob to show the old file in this situation, even though it normally shows the new file?
view-blob
Yes, we could use the same logic as when opening the blame view from the diff view to identify the blob corresponding to the diff line.
In all current versions, when the cursor is over a diff belonging to a deleted file, i.e. where git shows
the window statusbar shows
[diff] Changes to '/dev/null'
and pressing f attempts to open /dev/null as a blob.Would it be possible for
view-blob
to show the old file in this situation, even though it normally shows the new file?