Do you want to work on this issue?
You can request for a bounty in order to promote it!
Add "view file before commit/PR" #3289
OliverJAsh posted onGitHub
<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a full URL where the feature should appear. -->
When viewing a commit page, GitHub provides a link to view each file. The link points to the file at the current commit. Example.
<img width="300" src="https://user-images.githubusercontent.com/921609/85848863-d0dd4080-b7a1-11ea-8a98-c257128d13b9.png" />
However, sometimes we want to view the version of a file before the commit was made.
For the longest time I have been doing this manually, by clicking "view file" and then editing the URL to add a ^
at the end of the commit (to reference the parent commit).
It would be very useful if this was added as a link in the menu, so we don't have to resort to hacking the URL like this.
This would also be useful in PRs, where GitHub similarly shows a "view file" link for each file in the diff. Sometimes we want to view the version of a file before all of the commits in this PR.
<img width="300" src="https://user-images.githubusercontent.com/921609/85848997-0f72fb00-b7a2-11ea-9020-3fce80d604db.png" />