Browse Source
Make commit info cancelable (#16032)
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>master
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 57 additions and 35 deletions
-
14modules/git/commit_info_gogit.go
-
23modules/git/commit_info_nogogit.go
-
5modules/git/commit_info_test.go
-
11modules/git/last_commit_cache_gogit.go
-
11modules/git/last_commit_cache_nogogit.go
-
5modules/git/notes_gogit.go
-
5modules/git/notes_nogogit.go
-
7modules/git/notes_test.go
-
5modules/repository/cache.go
-
2routers/repo/commit.go
-
2routers/repo/view.go
-
2services/repository/push.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue