aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorStanislav Seletskiy <s.seletskiy@gmail.com>2019-06-11 02:33:09 +0300
committerStanislav Seletskiy <s.seletskiy@gmail.com>2019-07-25 16:38:47 +0300
commit5d9007f27b50c17cefecd13ad160840aa4f86ed1 (patch)
tree0c5eb99b444e361a2380b2083f066860cf55212c /options.go
parent60033b8925a18fff9f68bea3d980076f73eb3cb5 (diff)
downloadgo-git-5d9007f27b50c17cefecd13ad160840aa4f86ed1.tar.gz
add Prune option to PushOptions
Signed-off-by: Stanislav Seletskiy <s.seletskiy@gmail.com>
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.