diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-12-06 15:46:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 15:46:09 +0100 |
commit | 22fe81f342538ae51442a72356036768f7f1a2f9 (patch) | |
tree | ccfe9fcd48d3c8f349b42413f71f26ba23a4cba9 /plumbing/protocol/packp/common.go | |
parent | 4b5849db76905830e0124b6b9f4294ee13308e0f (diff) | |
download | go-git-22fe81f342538ae51442a72356036768f7f1a2f9.tar.gz |
protocol/packp: UploadPackResponse implementation (#161)
* plumbing/protocol: paktp avoid duplication of haves, wants and shallow
* protocol/pakp: UploadPackResponse implementation
* changes
* changes
* changes
* debug
* changes
Diffstat (limited to 'plumbing/protocol/packp/common.go')
-rw-r--r-- | plumbing/protocol/packp/common.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/plumbing/protocol/packp/common.go b/plumbing/protocol/packp/common.go index c8db931..2328eda 100644 --- a/plumbing/protocol/packp/common.go +++ b/plumbing/protocol/packp/common.go @@ -17,12 +17,12 @@ var ( eol = []byte("\n") eq = []byte{'='} - // advrefs + // advertised-refs null = []byte("\x00") peeled = []byte("^{}") noHeadMark = []byte(" capabilities^{}\x00") - // ulreq + // upload-request want = []byte("want ") shallow = []byte("shallow ") deepen = []byte("deepen") @@ -30,6 +30,13 @@ var ( deepenSince = []byte("deepen-since ") deepenReference = []byte("deepen-not ") + // shallow-update + unshallow = []byte("unshallow ") + + // server-response + ack = []byte("ACK") + nak = []byte("NAK") + // updreq shallowNoSp = []byte("shallow") ) |