gitea/modules/repository
KN4CK3R 044c754ea5
Add `context.Context` to more methods ()
This PR adds a context parameter to a bunch of methods. Some helper
`xxxCtx()` methods got replaced with the normal name now.

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
collaborator.go Allow detect whether it's in a database transaction for a context.Context ()
collaborator_test.go Move some files into models' sub packages ()
commits.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
commits_test.go Add system setting table with cache and also add cache supports for user setting ()
create.go Allow detect whether it's in a database transaction for a context.Context ()
create_test.go Move some files into models' sub packages ()
delete.go Move some repository related code into sub package ()
env.go Move some helper files out of models ()
fork.go Move some repository related code into sub package ()
generate.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
generate_test.go Move some repository related code into sub package ()
hooks.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
init.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()
main_test.go Use a struct as test options ()
push.go Refactor git command arguments and make all arguments to be safe to be used ()
repo.go Add `context.Context` to more methods ()
temp.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) ()