]> source.dussan.org Git - gitea.git/commit
Refactor RepoRefByType (#32413)
authorwxiaoguang <wxiaoguang@gmail.com>
Tue, 5 Nov 2024 06:35:54 +0000 (14:35 +0800)
committerGitHub <noreply@github.com>
Tue, 5 Nov 2024 06:35:54 +0000 (06:35 +0000)
commit61c35590c793449d3133b00f58302b5cce90d69c
treeb546a0aa29f9d906ad7ab3e8b28e746d23016577
parent4a469c8e1b3c1d153316aec9fd8cbdd3e1dd54e8
Refactor RepoRefByType (#32413)

1. clarify the "filepath" could(should) contain "{ref}"
2. remove unclear RepoRefLegacy and RepoRefAny, use RepoRefUnknown to guess
3. by the way, avoid using AppURL
routers/api/v1/repo/file.go
routers/web/goget.go
routers/web/web.go
services/context/api.go
services/context/repo.go
templates/swagger/v1_json.tmpl
tests/integration/links_test.go