diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-08 23:46:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 23:46:38 +0100 |
commit | ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d (patch) | |
tree | 223f36f336ba3414b1e45cac8af6c4744a5d7ef6 /examples/remotes/main.go | |
parent | e523701393598f4fa241dd407af9ff8925507a1a (diff) | |
download | go-git-ac095bb12c4d29722b60ba9f20590fa7cfa6bc7d.tar.gz |
new plumbing package (#118)
* plumbing: now core was renamed to core, and formats and clients moved inside
Diffstat (limited to 'examples/remotes/main.go')
-rw-r--r-- | examples/remotes/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/remotes/main.go b/examples/remotes/main.go index 552d6a5..3ccecd7 100644 --- a/examples/remotes/main.go +++ b/examples/remotes/main.go @@ -7,7 +7,7 @@ import ( "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/config" - "gopkg.in/src-d/go-git.v4/core" + "gopkg.in/src-d/go-git.v4/plumbing" ) func main() { @@ -46,10 +46,10 @@ func main() { color.Blue("git show-ref") refs, _ := r.Refs() - refs.ForEach(func(ref *core.Reference) error { + refs.ForEach(func(ref *plumbing.Reference) error { // The HEAD is ommitted in a `git show-ref` so we ignore the symbolic // references, the HEAD - if ref.Type() == core.SymbolicReference { + if ref.Type() == plumbing.SymbolicReference { return nil } |