Direct link to view Commit Snapshot of File from File History page #6692

Open
opened 2025-11-02 07:04:01 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @nunoperalta on GitHub (Jan 14, 2021).

  • Gitea version (or commit ref): 1.13.0
  • Git version: Latest on Windows (not relevant for this suggestion)
  • Operating system: Docker on CentOS 7; using Google Chrome on Windows to login to it
  • Database: MySQL
  • Can you reproduce the bug at https://try.gitea.io: Yes (see below)

Description

When we click to view the History of a file in the repo, e.g.

https://try.gitea.io/dzikismigol/barenote-cli/commits/branch/master/README.md

All the links for each commit bring us to the WHOLE commit, showing ALL files modified on that commit.
E.g.:
6ade8d9ba6

It would be nice to have an extra link to see ONLY the file, how it was at the time of that commit.

Sometimes, a commit can have LOADS of changed files, but I'm only interested in the one I'm looking at. (see screenshots)

At the moment, on that second link above, I have to click "Browse Source" button and then find the file again.
What I'm looking for is a direct link to this, e.g.:

6ade8d9ba6/README.md

image

image

image

image

Originally created by @nunoperalta on GitHub (Jan 14, 2021). - Gitea version (or commit ref): 1.13.0 - Git version: Latest on Windows (not relevant for this suggestion) - Operating system: Docker on CentOS 7; using Google Chrome on Windows to login to it - Database: MySQL - Can you reproduce the bug at https://try.gitea.io: Yes (see below) ## Description When we click to view the History of a file in the repo, e.g. https://try.gitea.io/dzikismigol/barenote-cli/commits/branch/master/README.md All the links for each commit bring us to the WHOLE commit, showing ALL files modified on that commit. E.g.: https://try.gitea.io/dzikismigol/barenote-cli/commit/6ade8d9ba65667518cfce016518e1cb9b9d8a20b It would be nice to have an extra link to see ONLY the file, how it was at the time of that commit. Sometimes, a commit can have LOADS of changed files, but I'm only interested in the one I'm looking at. (see screenshots) At the moment, on that second link above, I have to click "Browse Source" button and then find the file again. What I'm looking for is a direct link to this, e.g.: https://try.gitea.io/dzikismigol/barenote-cli/src/commit/6ade8d9ba65667518cfce016518e1cb9b9d8a20b/README.md ![image](https://user-images.githubusercontent.com/487079/104629910-07bd6a00-5692-11eb-87bd-233126ac5187.png) ![image](https://user-images.githubusercontent.com/487079/104629951-1572ef80-5692-11eb-9db1-7040a2c0a0a8.png) ![image](https://user-images.githubusercontent.com/487079/104630054-33405480-5692-11eb-8030-bad75408d9f2.png) ![image](https://user-images.githubusercontent.com/487079/104630072-3c312600-5692-11eb-9c40-5b2f33a96370.png)
GiteaMirror added the type/proposal label 2025-11-02 07:04:01 -06:00
Author
Owner

@sk011 commented on GitHub (Jun 29, 2023):

I fully support
commit may contain thousands of modified files, but i'm interisting only one

@sk011 commented on GitHub (Jun 29, 2023): I fully support commit may contain thousands of modified files, but i'm interisting only one
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6692