From 5d9007f27b50c17cefecd13ad160840aa4f86ed1 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Tue, 11 Jun 2019 02:33:09 +0300 Subject: add Prune option to PushOptions Signed-off-by: Stanislav Seletskiy --- options.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'options.go') 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. -- cgit