diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-22 00:30:50 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-22 00:30:50 +0200 |
commit | 5b13c1a2e55cb442484d9c7b45389f422b110eec (patch) | |
tree | 9be0949cb354dfd6521aa84f4af9e5777c3a1cef /repository.go | |
parent | f42d82364c5d159f65a48e720433ad2bc97f0b7f (diff) | |
download | go-git-5b13c1a2e55cb442484d9c7b45389f422b110eec.tar.gz |
options renamed and some text fixes
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/repository.go b/repository.go index 64107f1..445e90c 100644 --- a/repository.go +++ b/repository.go @@ -93,7 +93,7 @@ func (r *Repository) DeleteRemote(name string) error { } // Clone clones a remote repository -func (r *Repository) Clone(o *RepositoryCloneOptions) error { +func (r *Repository) Clone(o *CloneOptions) error { if err := o.Validate(); err != nil { return err } @@ -118,7 +118,7 @@ func (r *Repository) Clone(o *RepositoryCloneOptions) error { return err } - if err = remote.Fetch(&RemoteFetchOptions{Depth: o.Depth}); err != nil { + if err = remote.Fetch(&FetchOptions{Depth: o.Depth}); err != nil { return err } @@ -133,7 +133,7 @@ func (r *Repository) Clone(o *RepositoryCloneOptions) error { const refspecSingleBranch = "+refs/heads/%s:refs/remotes/%s/%[1]s" func (r *Repository) updateRemoteConfig( - remote *Remote, o *RepositoryCloneOptions, c *config.RemoteConfig, + remote *Remote, o *CloneOptions, c *config.RemoteConfig, ) error { if o.SingleBranch { head, err := core.ResolveReference(remote.Info().Refs, o.ReferenceName) @@ -167,7 +167,7 @@ func (r *Repository) createReferences(ref *core.Reference) error { } // Pull incorporates changes from a remote repository into the current branch -func (r *Repository) Pull(o *RepositoryPullOptions) error { +func (r *Repository) Pull(o *PullOptions) error { if err := o.Validate(); err != nil { return err } @@ -194,7 +194,7 @@ func (r *Repository) Pull(o *RepositoryPullOptions) error { defer remote.Disconnect() - err = remote.Fetch(&RemoteFetchOptions{ + err = remote.Fetch(&FetchOptions{ Depth: o.Depth, }) |