aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-01-30 14:42:19 +0100
committerGitHub <noreply@github.com>2017-01-30 14:42:19 +0100
commita48bc6e17ef6298f93ec21cdf1a5e387640673b6 (patch)
treed2fa569b6c2c7699fa6f7c2a60b9bce90f1e55f8 /options.go
parent77b6391a050743f3f0aa46018db65853c7167df5 (diff)
downloadgo-git-a48bc6e17ef6298f93ec21cdf1a5e387640673b6.tar.gz
Repository.Progress moved as a field in *Options (#237)
Diffstat (limited to 'options.go')
-rw-r--r--options.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/options.go b/options.go
index 4ed9979..8abace2 100644
--- a/options.go
+++ b/options.go
@@ -5,6 +5,7 @@ import (
"gopkg.in/src-d/go-git.v4/config"
"gopkg.in/src-d/go-git.v4/plumbing"
+ "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/sideband"
"gopkg.in/src-d/go-git.v4/plumbing/transport"
)
@@ -32,6 +33,10 @@ type CloneOptions struct {
SingleBranch bool
// Limit fetching to the specified number of commits
Depth int
+ // Progress is where the human readable information sent by the server is
+ // stored, if nil nothing is stored and the capability (if supported)
+ // no-progress, is sent to the server to avoid send this information
+ Progress sideband.Progress
}
// Validate validates the fields and sets the default values
@@ -63,6 +68,10 @@ type PullOptions struct {
Depth int
// Auth credentials, if required, to use with the remote repository
Auth transport.AuthMethod
+ // Progress is where the human readable information sent by the server is
+ // stored, if nil nothing is stored and the capability (if supported)
+ // no-progress, is sent to the server to avoid send this information
+ Progress sideband.Progress
}
// Validate validates the fields and sets the default values.
@@ -88,6 +97,10 @@ type FetchOptions struct {
Depth int
// Auth credentials, if required, to use with the remote repository
Auth transport.AuthMethod
+ // Progress is where the human readable information sent by the server is
+ // stored, if nil nothing is stored and the capability (if supported)
+ // no-progress, is sent to the server to avoid send this information
+ Progress sideband.Progress
}
// Validate validates the fields and sets the default values