aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorJohn Cai <johncai86@gmail.com>2021-10-02 22:51:36 -0400
committerJohn Cai <jcai@gitlab.com>2021-10-05 13:16:17 -0400
commit5340c58e393abecadb651e5f7ef43a66ce34ac88 (patch)
treec079f086ba23a21cd68ade66d784b9a1202f55ba /options.go
parent4ec1753b4e9324d455d3b55060020ce324e6ced2 (diff)
downloadgo-git-5340c58e393abecadb651e5f7ef43a66ce34ac88.tar.gz
git: add --follow-tags option for pushes
This PR adds support for the --follow-tags option for pushes.
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 7068796..6137ae7 100644
--- a/options.go
+++ b/options.go
@@ -213,6 +213,9 @@ type PushOptions struct {
// RequireRemoteRefs only allows a remote ref to be updated if its current
// value is the one specified here.
RequireRemoteRefs []config.RefSpec
+ // FollowTags will send any annotated tags with a commit target reachable from
+ // the refs already being pushed
+ FollowTags bool
}
// Validate validates the fields and sets the default values.