Open a version of a file from a commit without saving it first

Dan Gibson 1 year ago updated by DGG 12 months ago 6

When viewing a commit, it would be nice to be able to either:

a) right click on the file in the Files tab and select "View Before" or "View Before", or

b) select "View" from the appropriate Changes window down the bottom of the screen

and it would save the file to the %TEMP% folder and open my editor for it.

At the moment my options are either copy the text from the Changes window and paste to my editor (but since the new unsaved file doesn't have an extension, it doesn't get syntax highlighting), or save the file somewhere and then open it in my editor.

I just want to view the file - not revert it, and I don't care where it gets saved.

Is this a duplicate of https://smartgit.userecho.com/communities/1/topics/953- ?

I'm unable to view topic 953.

Sorry about confusion about topics. I have now published this one.

The one feature I miss from Sourcetree is being able to "Open Before" on modified and staged files (i.e. open the version of the file pre-modifications). The original version of the file is saved to a temporary directory and opened in the associated system editor. Not sure if this is the same feature being requested here?

This topic is about files from commits, not local (or Index) files.

OK, will create a separate RFE. Thanks!