]> source.dussan.org Git - gitea.git/commit
Make commit info cancelable (#16032)
authorzeripath <art27@cantab.net>
Sun, 6 Jun 2021 23:44:58 +0000 (00:44 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Jun 2021 23:44:58 +0000 (19:44 -0400)
commit51775f65bc933843199320b040186703a2bb9f51
tree103463ed6f5ab76245c3dcbaa46773b3bf358e6b
parentb6762e23060972f0ad35aeab48850064687ea400
Make commit info cancelable (#16032)

* Make modules/context.Context a context.Context

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Simplify context calls

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Set the base context for requests to the HammerContext

Signed-off-by: Andrew Thornton <art27@cantab.net>
* pass context into get-last-commit

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make commit_info cancellable

Signed-off-by: Andrew Thornton <art27@cantab.net>
* use context as context

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
12 files changed:
modules/git/commit_info_gogit.go
modules/git/commit_info_nogogit.go
modules/git/commit_info_test.go
modules/git/last_commit_cache_gogit.go
modules/git/last_commit_cache_nogogit.go
modules/git/notes_gogit.go
modules/git/notes_nogogit.go
modules/git/notes_test.go
modules/repository/cache.go
routers/repo/commit.go
routers/repo/view.go
services/repository/push.go