diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-01-30 14:42:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 14:42:19 +0100 |
commit | a48bc6e17ef6298f93ec21cdf1a5e387640673b6 (patch) | |
tree | d2fa569b6c2c7699fa6f7c2a60b9bce90f1e55f8 /examples/progress/main.go | |
parent | 77b6391a050743f3f0aa46018db65853c7167df5 (diff) | |
download | go-git-a48bc6e17ef6298f93ec21cdf1a5e387640673b6.tar.gz |
Repository.Progress moved as a field in *Options (#237)
Diffstat (limited to 'examples/progress/main.go')
-rw-r--r-- | examples/progress/main.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/progress/main.go b/examples/progress/main.go index e0e4c1d..0da9db8 100644 --- a/examples/progress/main.go +++ b/examples/progress/main.go @@ -15,17 +15,17 @@ func main() { r, err := git.NewFilesystemRepository(directory) CheckIfError(err) - // as git does, when you make a clone, pull or some other operations, the - // server sends information via the sideband, this information can being - // collected provinding a io.Writer to the repository - r.Progress = os.Stdout - // Clone the given repository to the given directory Info("git clone %s %s", url, directory) err = r.Clone(&git.CloneOptions{ URL: url, Depth: 1, + + // as git does, when you make a clone, pull or some other operations the + // server sends information via the sideband, this information can being + // collected provinding a io.Writer to the CloneOptions options + Progress: os.Stdout, }) CheckIfError(err) |