On the commit detail view, for a file that was affected by a commit, I can
However, I think it would be nice to be able to open a read-only view of this specific revision, without the diff view. In particular, "Click to open file" can fail if the file is absent from the current working directory, or can be confusing if the clicked revision is different from the current one.
This would help making vscode-git-graph even more awesome than it is already :)
Hi @fsteinmetz, thanks for raising this improvement request!
Would you please let me know the use case for when a user would want to view a read-only preview of the file at the specific commit revision (using the āClick to Open Fileā button), considering they can already see this exact read-only preview of the file on the right hand side of the Diff View?
The reason why I currently provide the Diff View, and Open File buttons in their current form is:
These buttons are currently designed to each cater for a unique use case / set of use cases, both adding their own value to the user.
Hi @mhutchie, and thanks for your quick answer!
I agree they can already see the same content on the right hand side of the diff, however personnally I am often interested in the file content at a specific commit, and not in the diff. In this case the diff view is of course cumbersome. vim-fugitive has this possibility through the :Gedit <commit>:<file> command ; gitlens also has both "open file" and "open revision" buttons at the top of diff views, and I think having these options in git-graph would be a plus.
I understand that opening the current file is useful as well, but I was wondering whether there might be a clutterless way to get all options. Maybe, following gitlens, as buttons at the top of the diff view, or as a button "open revision" next to the "open file" in the commit detail?
Thanks for your quick reply, and explaining your use case!
Based on your response, I think it would be best to add āOpen Revisionā buttons next to the āOpen Fileā buttons in the Commit Details View. Iāll add this in an upcoming release!
Great, thanks! š
This will be available in v1.23.0.
If you'd like to use it before the next release, you can download v1.23.0-beta.3, and install it following the instructions provided here.
Most helpful comment
Thanks for your quick reply, and explaining your use case!
Based on your response, I think it would be best to add āOpen Revisionā buttons next to the āOpen Fileā buttons in the Commit Details View. Iāll add this in an upcoming release!