diff options
author | John Cai <johncai86@gmail.com> | 2021-10-02 22:51:36 -0400 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2021-10-05 13:16:17 -0400 |
commit | 5340c58e393abecadb651e5f7ef43a66ce34ac88 (patch) | |
tree | c079f086ba23a21cd68ade66d784b9a1202f55ba /options.go | |
parent | 4ec1753b4e9324d455d3b55060020ce324e6ced2 (diff) | |
download | go-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.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |