aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2019-07-26 18:59:37 +0200
committerGitHub <noreply@github.com>2019-07-26 18:59:37 +0200
commit1edb992dbc419a0767b1cf3a524b0d35529799f5 (patch)
treefe994302589318133ec34e74bfe8c8f302a5147d /options.go
parent4a6d836e2fa35fd05d2bfeeaecbb546c2e10ece1 (diff)
parent17ea92a0703c21b744560e6586ee61431dba9ffb (diff)
downloadgo-git-1edb992dbc419a0767b1cf3a524b0d35529799f5.tar.gz
Merge pull request #1165 from seletskiy/push-prune
Remote: add Prune option to PushOptions
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 a3b14fe..0f728e7 100644
--- a/options.go
+++ b/options.go
@@ -186,6 +186,9 @@ type PushOptions struct {
// Progress is where the human readable information sent by the server is
// stored, if nil nothing is stored.
Progress sideband.Progress
+ // Prune specify that remote refs that match given RefSpecs and that do
+ // not exist locally will be removed.
+ Prune bool
}
// Validate validates the fields and sets the default values.