diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2021-11-01 22:52:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 22:52:04 +0100 |
commit | ed3b10c0489949843abf071e3ce2697c0c65f26d (patch) | |
tree | 6b4d38e60df1522d37d3de4a776ba091bb33c00e /options.go | |
parent | 934e99b85109874d8a24f344786c30276715bde0 (diff) | |
parent | 21d8d7e95144eca38e93120b575c0ebd436e0e24 (diff) | |
download | go-git-ed3b10c0489949843abf071e3ce2697c0c65f26d.tar.gz |
Merge pull request #325 from tjamet/push/sha
Remote: Push, add support to push commits per hashes
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -198,8 +198,14 @@ type PushOptions struct { RemoteName string // RemoteURL overrides the remote repo address with a custom URL RemoteURL string - // RefSpecs specify what destination ref to update with what source - // object. A refspec with empty src can be used to delete a reference. + // RefSpecs specify what destination ref to update with what source object. + // + // The format of a <refspec> parameter is an optional plus +, followed by + // the source object <src>, followed by a colon :, followed by the destination ref <dst>. + // The <src> is often the name of the branch you would want to push, but it can be a SHA-1. + // The <dst> tells which ref on the remote side is updated with this push. + // + // A refspec with empty src can be used to delete a reference. RefSpecs []config.RefSpec // Auth credentials, if required, to use with the remote repository. Auth transport.AuthMethod |