aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/protocol/packp/common.go
diff options
context:
space:
mode:
authorAyman Bagabas <ayman.bagabas@gmail.com>2023-11-17 15:27:49 -0500
committerAyman Bagabas <ayman.bagabas@gmail.com>2023-11-23 11:46:48 -0500
commite1875336041ead704df7f481f8691452ef939556 (patch)
tree7928b4a5a964869a19c9f91f6a91c604e60c3f6c /plumbing/protocol/packp/common.go
parentfecea417bfc18648757a1bde30ca384548b55197 (diff)
downloadgo-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.go5
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