gitea/routers
Rowan Bohde ac2d97cb61
Link to tree views of submodules if possible (#33424)
This is a follow-up to https://github.com/go-gitea/gitea/pull/33097. 

When linking a submodule at a commit in either the repo view, or a diff
when adding a new submodule, link to the tree view of that submodules
intead of the individual commit. This shows the user the full tree,
instead of the diff of the commit.

This makes the assumption that the tree for a given SHA is at
`<repo_url>/tree/<sha>`. This URL format is supported by both Github &
Gitlab, but not Gitea. To fix this, add a redirect from
`<username>/<repo>/tree/<ref>` to `<username>/<repo>/src/<ref>`, so that
Gitea can support this URL structure.
2025-01-30 00:09:52 +00:00
..
api Fix system admin cannot fork or get private fork with API (#33401) 2025-01-27 16:25:14 +00:00
common Support performance trace (#32973) 2025-01-21 18:57:07 +00:00
install Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
private User facing messages for AGit errors (#33012) 2025-01-27 02:33:39 +00:00
utils Refactor older tests to use testify (#33140) 2025-01-09 09:21:47 +08:00
web Link to tree views of submodules if possible (#33424) 2025-01-30 00:09:52 +00:00
init.go Prepare for support performance trace (#33286) 2025-01-15 20:05:18 +00:00