0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-29 00:24:41 +01:00
gitea/services/markup
wxiaoguang 6d5aa9218e
Refactor request context (#32956)
Introduce RequestContext: is a short-lived context that is used to store
request-specific data.

RequestContext could be used to clean form tmp files, close context git
repo, and do some tracing in the future.

Then a lot of legacy code could be removed or improved. For example:
most `ctx.Repo.GitRepo.Close()` could be removed because the git repo
could be closed when the request is done.
2024-12-24 11:43:57 +08:00
..
main_test.go
renderhelper.go
renderhelper_codepreview.go
renderhelper_codepreview_test.go
renderhelper_issueicontitle.go
renderhelper_issueicontitle_test.go
renderhelper_mention_test.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00