You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/repository
zeripath 9302eba971
DBContext is just a Context (#17100)
* DBContext is just a Context

This PR removes some of the specialness from the DBContext and makes it context
This allows us to simplify the GetEngine code to wrap around any context in future
and means that we can change our loadRepo(e Engine) functions to simply take contexts.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix unit tests

Signed-off-by: Andrew Thornton <art27@cantab.net>

* another place that needs to set the initial context

Signed-off-by: Andrew Thornton <art27@cantab.net>

* avoid race

Signed-off-by: Andrew Thornton <art27@cantab.net>

* change attachment error

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
adopt.go DBContext is just a Context (#17100) 3 years ago
archive.go Fix archive error when rename repo or user (#16399) 3 years ago
branch.go [API] Add pagination to ListBranches (#14524) 3 years ago
cache.go Make commit info cancelable (#16032) 3 years ago
check.go DBContext is just a Context (#17100) 3 years ago
commits.go Report the correct number of pushes on the feeds (#16811) 3 years ago
commits_test.go Move db related basic functions to models/db (#17075) 3 years ago
create.go DBContext is just a Context (#17100) 3 years ago
create_test.go Move db related basic functions to models/db (#17075) 3 years ago
fork.go DBContext is just a Context (#17100) 3 years ago
fork_test.go Move db related basic functions to models/db (#17075) 3 years ago
generate.go DBContext is just a Context (#17100) 3 years ago
hooks.go DBContext is just a Context (#17100) 3 years ago
init.go DBContext is just a Context (#17100) 3 years ago
main_test.go Move db related basic functions to models/db (#17075) 3 years ago
push.go Fix a bug on refactoring (#13373) 4 years ago
repo.go DBContext is just a Context (#17100) 3 years ago
update.go DBContext is just a Context (#17100) 3 years ago