diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-05-21 12:31:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 12:31:46 +0200 |
commit | 6d8103df45ce09ffd5323b4ef46d26440400a54f (patch) | |
tree | 300780aa8d799bef9ac7c85618e514f07bb72516 /options.go | |
parent | 838eb2979f6085fc0e5bc8856e7f1944a455a970 (diff) | |
parent | b5b511a94e28ea0346fc83a2afec43e5514fdb1e (diff) | |
download | go-git-6d8103df45ce09ffd5323b4ef46d26440400a54f.tar.gz |
Merge pull request #71 from kappyhappy/master
Remote.Push: support force option
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,12 +6,12 @@ import ( "strings" "time" - "golang.org/x/crypto/openpgp" "github.com/go-git/go-git/v5/config" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" "github.com/go-git/go-git/v5/plumbing/protocol/packp/sideband" "github.com/go-git/go-git/v5/plumbing/transport" + "golang.org/x/crypto/openpgp" ) // SubmoduleRescursivity defines how depth will affect any submodule recursive @@ -190,6 +190,9 @@ type PushOptions struct { // Prune specify that remote refs that match given RefSpecs and that do // not exist locally will be removed. Prune bool + // Force allows the push to update a remote branch even when the local + // branch does not descend from it. + Force bool } // Validate validates the fields and sets the default values. |