aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorkappyhappy <t.katsu1031@gmail.com>2020-05-21 10:36:31 +0900
committerkappyhappy <t.katsu1031@gmail.com>2020-05-21 18:12:48 +0900
commitb5b511a94e28ea0346fc83a2afec43e5514fdb1e (patch)
tree300780aa8d799bef9ac7c85618e514f07bb72516 /options.go
parent838eb2979f6085fc0e5bc8856e7f1944a455a970 (diff)
downloadgo-git-b5b511a94e28ea0346fc83a2afec43e5514fdb1e.tar.gz
Remote.Push: support force option
Diffstat (limited to 'options.go')
-rw-r--r--options.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/options.go b/options.go
index a147f58..2a9727c 100644
--- a/options.go
+++ b/options.go
@@ -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.