You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/gitdiff
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.
1 day ago
..
testdata/academic-module Reduce integration test overhead (#32475) 3 months ago
csv.go Use Go 1.21 and update dependencies (#26878) 1 year ago
csv_test.go Refactor older tests to use testify (#33140) 3 weeks ago
gitdiff.go Fix parentCommit invalid memory address or nil pointer dereference. (#33204) 2 weeks ago
gitdiff_test.go Refactor older tests to use testify (#33140) 3 weeks ago
highlightdiff.go Add option to disable ambiguous unicode characters detection (#28454) 1 year ago
highlightdiff_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go make writing main test easier (#27270) 1 year ago
submodule.go add submodule diff links (#33097) 3 weeks ago
submodule_test.go Link to tree views of submodules if possible (#33424) 1 day ago