aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-11-08 23:46:38 +0100
committerGitHub <noreply@github.com>2016-11-08 23:46:38 +0100
commitac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch)
tree223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /options.go
parente523701393598f4fa241dd407af9ff8925507a1a (diff)
downloadgo-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'options.go')
-rw-r--r--options.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/options.go b/options.go
index 4d289e9..edb908a 100644
--- a/options.go
+++ b/options.go
@@ -3,9 +3,9 @@ package git
import (
"errors"
- "gopkg.in/src-d/go-git.v4/clients/common"
"gopkg.in/src-d/go-git.v4/config"
- "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/plumbing"
+ "gopkg.in/src-d/go-git.v4/plumbing/client/common"
)
const (
@@ -27,7 +27,7 @@ type CloneOptions struct {
// Name of the remote to be added, by default `origin`
RemoteName string
// Remote branch to clone
- ReferenceName core.ReferenceName
+ ReferenceName plumbing.ReferenceName
// Fetch only ReferenceName if true
SingleBranch bool
// Limit fetching to the specified number of commits
@@ -45,7 +45,7 @@ func (o *CloneOptions) Validate() error {
}
if o.ReferenceName == "" {
- o.ReferenceName = core.HEAD
+ o.ReferenceName = plumbing.HEAD
}
return nil
@@ -56,7 +56,7 @@ type PullOptions struct {
// Name of the remote to be pulled
RemoteName string
// Remote branch to clone
- ReferenceName core.ReferenceName
+ ReferenceName plumbing.ReferenceName
// Fetch only ReferenceName if true
SingleBranch bool
// Limit fetching to the specified number of commits
@@ -70,7 +70,7 @@ func (o *PullOptions) Validate() error {
}
if o.ReferenceName == "" {
- o.ReferenceName = core.HEAD
+ o.ReferenceName = plumbing.HEAD
}
return nil