You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
When viewing a commit page, GitHub provides a link to view each file. The link points to the file at the current commit. Example.
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.
Copied from refined-github/refined-github#3289
When viewing a commit page, GitHub provides a link to view each file. The link points to the file at the current commit. Example.
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.