gitea/routers/private
Jason Song 7adc2de464
Use context parameter in models/git ()
After , we can feel free to use transactions without
`db.DefaultContext`.

And there are still lots of models using `db.DefaultContext`, I think we
should refactor them carefully and one by one.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
default_branch.go Implement FSFE REUSE for golang files ()
hook_post_receive.go refactor some functions to support ctx as first parameter ()
hook_pre_receive.go Use context parameter in models/git ()
hook_proc_receive.go Implement FSFE REUSE for golang files ()
hook_verification.go Implement FSFE REUSE for golang files ()
internal.go refactor bind functions based on generics ()
internal_repo.go refactor some functions to support ctx as first parameter ()
key.go Implement FSFE REUSE for golang files ()
mail.go Implement FSFE REUSE for golang files ()
manager.go Implement FSFE REUSE for golang files ()
manager_process.go Implement FSFE REUSE for golang files ()
manager_unix.go Implement FSFE REUSE for golang files ()
manager_windows.go Implement FSFE REUSE for golang files ()
restore_repo.go Implement FSFE REUSE for golang files ()
serv.go Rename almost all Ctx functions ()
ssh_log.go Implement FSFE REUSE for golang files ()