diff options
author | Sören Bohn <soeren.bohn@ppro.com> | 2021-10-26 15:49:15 +0200 |
---|---|---|
committer | Sören Bohn <soeren@lambda-complex.org> | 2021-10-26 16:08:54 +0200 |
commit | e729edb00d36e9bd19f99dfa493984233b0dccfa (patch) | |
tree | 3cb555f90071aa32768c6a49a90d52d47eda64be /plumbing/protocol/packp/updreq.go | |
parent | 99457e570d34320b12fb4fcd0f054f3d0b1d3eec (diff) | |
download | go-git-e729edb00d36e9bd19f99dfa493984233b0dccfa.tar.gz |
plumbing: packp, Add encoding for push-options. Fixes #268.
go-git: Add field `Options` to `PushOptions`, wire functionality.
Diffstat (limited to 'plumbing/protocol/packp/updreq.go')
-rw-r--r-- | plumbing/protocol/packp/updreq.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plumbing/protocol/packp/updreq.go b/plumbing/protocol/packp/updreq.go index 4d927d8..46ad6fd 100644 --- a/plumbing/protocol/packp/updreq.go +++ b/plumbing/protocol/packp/updreq.go @@ -19,6 +19,7 @@ var ( type ReferenceUpdateRequest struct { Capabilities *capability.List Commands []*Command + Options []*Option Shallow *plumbing.Hash // Packfile contains an optional packfile reader. Packfile io.ReadCloser @@ -120,3 +121,8 @@ func (c *Command) validate() error { return nil } + +type Option struct { + Key string + Value string +} |