diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-12-24 11:43:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-24 11:43:57 +0800 |
commit | 6d5aa9218e78ac500b21fb3f36674284118a7c78 (patch) | |
tree | b715679f96f126958457b6e6c42d0d26aebcb58a /modules/git/batch.go | |
parent | 781c6df40fcd8c8a112d048b4beb079d0b9a7f2b (diff) | |
download | gitea-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/batch.go')
0 files changed, 0 insertions, 0 deletions