aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'options.go')
-rw-r--r--options.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.go b/options.go
index 507fc07..b5d1503 100644
--- a/options.go
+++ b/options.go
@@ -210,6 +210,9 @@ type PushOptions struct {
InsecureSkipTLS bool
// CABundle specify additional ca bundle with system cert pool
CABundle []byte
+ // RequireRemoteRefs only allows a remote ref to be updated if its current
+ // value is the one specified here.
+ RequireRemoteRefs []config.RefSpec
}
// Validate validates the fields and sets the default values.