aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/commit_submodule_file_test.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-12-24 11:43:57 +0800
committerGitHub <noreply@github.com>2024-12-24 11:43:57 +0800
commit6d5aa9218e78ac500b21fb3f36674284118a7c78 (patch)
treeb715679f96f126958457b6e6c42d0d26aebcb58a /modules/git/commit_submodule_file_test.go
parent781c6df40fcd8c8a112d048b4beb079d0b9a7f2b (diff)
downloadgitea-6d5aa9218e78ac500b21fb3f36674284118a7c78.tar.gz
gitea-6d5aa9218e78ac500b21fb3f36674284118a7c78.zip
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.
Diffstat (limited to 'modules/git/commit_submodule_file_test.go')
0 files changed, 0 insertions, 0 deletions