Skip to content

Button in file commit history to view file at commit #26707

Closed
@silverwind

Description

@silverwind

Feature Description

When viewing a file's commit history, GitHub has a button to view a file at a specific commit, for example:

https://github.com/go-gitea/gitea/commits/main/README.md

Screenshot 2023-08-24 at 11 46 33

It should be easy to add, just check whether the commit log is for a file, and if so, construct a link to file with the commit hash.

Possibly depends on #24423.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposal/acceptedWe have reviewed the proposal and agree that it should be implemented like that/at all.topic/uiChange the appearance of the Gitea UItype/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions