diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2021-10-26 12:17:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 12:17:29 +0200 |
commit | 243e7c801995fa0146b3564f41321ca234a8b1d2 (patch) | |
tree | c079f086ba23a21cd68ade66d784b9a1202f55ba /options.go | |
parent | 4ec1753b4e9324d455d3b55060020ce324e6ced2 (diff) | |
parent | 5340c58e393abecadb651e5f7ef43a66ce34ac88 (diff) | |
download | go-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.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. |