gitHistoryVSCode icon indicating copy to clipboard operation
gitHistoryVSCode copied to clipboard

Feature request: ability to view deleted file contents

Open warpdesign opened this issue 7 years ago • 7 comments

When opening View History (git log), selecting a commit, and chosing a file that was modified, you get the ability to compare the file with the previous version.

However, if the file was removed in this commit, you do not get the ability to view the previous version of the file (ie: before it was deleted). It would be great if this was possible, just to check what you deleted.

warpdesign avatar Apr 24 '17 22:04 warpdesign

Will fix in the next version apologies for the delay.

DonJayamanne avatar Jan 27 '18 06:01 DonJayamanne

Hi, in the same line, it would also make sense to be able to view the content of files which have been added.

Oldself avatar Feb 13 '18 16:02 Oldself

Would be really useful to see added/deleted files content

ash0803 avatar Aug 29 '18 14:08 ash0803

Hi, @DonJayamanne , it's been a year and a half so I wanted to check if there's something akin to this feature available. Is there any way to see the contents of a file that's been deleted? It doesn't have to be via the "log" interface, I really just want the equivalent of git show old-branch:path/to/deleted/file inside of VSCode.

thw0rted avatar Jun 03 '19 12:06 thw0rted

Changing this to a bug, as it seems basic functionality.

DonJayamanne avatar Feb 22 '20 22:02 DonJayamanne

Any update on this? We need it.

MansurAliKoroglu avatar Sep 23 '20 06:09 MansurAliKoroglu

bump!!!

wenfangdu avatar Aug 30 '22 03:08 wenfangdu