diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-25 14:26:17 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-25 14:26:17 +0200 |
commit | af3f5e2b9139674b49c5caf0bc06e93cbc426727 (patch) | |
tree | 06dbaadba6bbee95afd3212438e2434846312dcc /plumbing/transport/common.go | |
parent | 8e83055176bbbbbde206884f10dc238fd378b9b4 (diff) | |
download | go-git-af3f5e2b9139674b49c5caf0bc06e93cbc426727.tar.gz |
transport: context package support
Diffstat (limited to 'plumbing/transport/common.go')
-rw-r--r-- | plumbing/transport/common.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plumbing/transport/common.go b/plumbing/transport/common.go index d6594ca..2088500 100644 --- a/plumbing/transport/common.go +++ b/plumbing/transport/common.go @@ -13,6 +13,7 @@ package transport import ( + "context" "errors" "fmt" "io" @@ -72,7 +73,7 @@ type UploadPackSession interface { // including a packfile. Don't be confused by terminology, the client // side of a git-upload-pack is called git-fetch-pack, although here // the same interface is used to make it RPC-like. - UploadPack(*packp.UploadPackRequest) (*packp.UploadPackResponse, error) + UploadPack(context.Context, *packp.UploadPackRequest) (*packp.UploadPackResponse, error) } // ReceivePackSession represents a git-receive-pack session. @@ -86,7 +87,7 @@ type ReceivePackSession interface { // terminology, the client side of a git-receive-pack is called // git-send-pack, although here the same interface is used to make it // RPC-like. - ReceivePack(*packp.ReferenceUpdateRequest) (*packp.ReportStatus, error) + ReceivePack(context.Context, *packp.ReferenceUpdateRequest) (*packp.ReportStatus, error) } // Endpoint represents a Git URL in any supported protocol. |