aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2021-10-26 12:17:29 +0200
committerGitHub <noreply@github.com>2021-10-26 12:17:29 +0200
commit243e7c801995fa0146b3564f41321ca234a8b1d2 (patch)
treec079f086ba23a21cd68ade66d784b9a1202f55ba /options.go
parent4ec1753b4e9324d455d3b55060020ce324e6ced2 (diff)
parent5340c58e393abecadb651e5f7ef43a66ce34ac88 (diff)
downloadgo-git-243e7c801995fa0146b3564f41321ca234a8b1d2.tar.gz
Merge pull request #385 from john-cai/add-follow-tags
git: add --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.