aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2021-11-03 14:04:06 -0400
committerJohn Cai <jcai@gitlab.com>2021-11-03 15:13:09 -0400
commit589a41ceedfa89e1ff334a969d1beb28cb731de9 (patch)
treef568b7430586771a49bb1e714bee432ed9596deb /options.go
parent3211a7a12a0ec2922d257fb14f09c6ecfb0b7c77 (diff)
downloadgo-git-589a41ceedfa89e1ff334a969d1beb28cb731de9.tar.gz
Add Atomic to push options
push --atomic allows a push to succeed or fail atomically. If one ref fails, the whole push fails. This commit allows the user to set Atomic as an option for a push.
Diffstat (limited to 'options.go')
-rw-r--r--options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.go b/options.go
index e54889f..77b74e5 100644
--- a/options.go
+++ b/options.go
@@ -230,6 +230,8 @@ type PushOptions struct {
FollowTags bool
// PushOptions sets options to be transferred to the server during push.
Options map[string]string
+ // Atomic sets option to be an atomic push
+ Atomic bool
}
// Validate validates the fields and sets the default values.