diff options
author | Antonio Jesus Navarro Perez <antonio@sourced.tech> | 2017-02-28 12:17:13 +0100 |
---|---|---|
committer | Antonio Jesus Navarro Perez <antonio@sourced.tech> | 2017-02-28 12:17:13 +0100 |
commit | 9251df17028a86cb0a0d486a3cd7e0b3eb2947f6 (patch) | |
tree | d4be201b1334b91f69de1caf86f3bdbbfce84ab2 /plumbing | |
parent | 0e9dea19f856e256e609c3390e000760d2b2b95a (diff) | |
download | go-git-9251df17028a86cb0a0d486a3cd7e0b3eb2947f6.tar.gz |
Remove TODOs from documentation
Diffstat (limited to 'plumbing')
-rw-r--r-- | plumbing/protocol/packp/srvresp.go | 2 | ||||
-rw-r--r-- | plumbing/protocol/packp/updreq.go | 2 | ||||
-rw-r--r-- | plumbing/transport/internal/common/common.go | 10 | ||||
-rw-r--r-- | plumbing/transport/server/server.go | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/plumbing/protocol/packp/srvresp.go b/plumbing/protocol/packp/srvresp.go index 95e1e57..4c1d6db 100644 --- a/plumbing/protocol/packp/srvresp.go +++ b/plumbing/protocol/packp/srvresp.go @@ -14,13 +14,13 @@ const ackLineLen = 44 // ServerResponse object acknowledgement from upload-pack service type ServerResponse struct { - // TODO: implement support for multi_ack or multi_ack_detailed responses ACKs []plumbing.Hash } // Decode decodes the response into the struct, isMultiACK should be true, if // the request was done with multi_ack or multi_ack_detailed capabilities func (r *ServerResponse) Decode(reader io.Reader, isMultiACK bool) error { + // TODO: implement support for multi_ack or multi_ack_detailed responses if isMultiACK { return errors.New("multi_ack and multi_ack_detailed are not supported") } diff --git a/plumbing/protocol/packp/updreq.go b/plumbing/protocol/packp/updreq.go index 4337ace..0f6a65a 100644 --- a/plumbing/protocol/packp/updreq.go +++ b/plumbing/protocol/packp/updreq.go @@ -16,7 +16,6 @@ var ( // ReferenceUpdateRequest values represent reference upload requests. // Values from this type are not zero-value safe, use the New function instead. type ReferenceUpdateRequest struct { - // TODO: Add support for push-cert Capabilities *capability.List Commands []*Command Shallow *plumbing.Hash @@ -27,6 +26,7 @@ type ReferenceUpdateRequest struct { // New returns a pointer to a new ReferenceUpdateRequest value. func NewReferenceUpdateRequest() *ReferenceUpdateRequest { return &ReferenceUpdateRequest{ + // TODO: Add support for push-cert Capabilities: capability.NewList(), Commands: nil, } diff --git a/plumbing/transport/internal/common/common.go b/plumbing/transport/internal/common/common.go index ab62a32..d089978 100644 --- a/plumbing/transport/internal/common/common.go +++ b/plumbing/transport/internal/common/common.go @@ -361,12 +361,12 @@ var ( ) // uploadPack implements the git-upload-pack protocol. -// -// TODO support multi_ack mode -// TODO support multi_ack_detailed mode -// TODO support acks for common objects -// TODO build a proper state machine for all these processing options func uploadPack(w io.WriteCloser, r io.Reader, req *packp.UploadPackRequest) error { + // TODO support multi_ack mode + // TODO support multi_ack_detailed mode + // TODO support acks for common objects + // TODO build a proper state machine for all these processing options + if err := req.UploadRequest.Encode(w); err != nil { return fmt.Errorf("sending upload-req message: %s", err) } diff --git a/plumbing/transport/server/server.go b/plumbing/transport/server/server.go index 79b64a1..8920351 100644 --- a/plumbing/transport/server/server.go +++ b/plumbing/transport/server/server.go @@ -421,8 +421,8 @@ func setHEAD(s storer.Storer, ar *packp.AdvRefs) error { return nil } -//TODO: add peeled references. func setReferences(s storer.Storer, ar *packp.AdvRefs) error { + //TODO: add peeled references. iter, err := s.IterReferences() if err != nil { return err |