diff options
author | Ayman Bagabas <ayman.bagabas@gmail.com> | 2023-11-17 15:27:49 -0500 |
---|---|---|
committer | Ayman Bagabas <ayman.bagabas@gmail.com> | 2023-11-23 11:46:48 -0500 |
commit | e1875336041ead704df7f481f8691452ef939556 (patch) | |
tree | 7928b4a5a964869a19c9f91f6a91c604e60c3f6c /plumbing/protocol/packp/common.go | |
parent | fecea417bfc18648757a1bde30ca384548b55197 (diff) | |
download | go-git-e1875336041ead704df7f481f8691452ef939556.tar.gz |
plumbing: add git-proto-request type
This the request used for the git transport protocol
feat: nil writer
Diffstat (limited to 'plumbing/protocol/packp/common.go')
-rw-r--r-- | plumbing/protocol/packp/common.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plumbing/protocol/packp/common.go b/plumbing/protocol/packp/common.go index fef50a4..a858323 100644 --- a/plumbing/protocol/packp/common.go +++ b/plumbing/protocol/packp/common.go @@ -48,6 +48,11 @@ func isFlush(payload []byte) bool { return len(payload) == 0 } +var ( + // ErrNilWriter is returned when a nil writer is passed to the encoder. + ErrNilWriter = fmt.Errorf("nil writer") +) + // ErrUnexpectedData represents an unexpected data decoding a message type ErrUnexpectedData struct { Msg string |