gitea/modules/gitrepo
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
..
branch.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00
gitrepo.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
url.go Use repo as of renderctx's member rather than a repoPath on metas (#29222) 2024-05-30 07:04:01 +00:00
walk_gogit.go Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
walk_nogogit.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00