aboutsummaryrefslogtreecommitdiffstats
path: root/blame_test.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 /blame_test.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 'blame_test.go')
-rw-r--r--blame_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/blame_test.go b/blame_test.go
index 2d9161c..53f2271 100644
--- a/blame_test.go
+++ b/blame_test.go
@@ -1,8 +1,8 @@
package git
import (
- "gopkg.in/src-d/go-git.v4/core"
"gopkg.in/src-d/go-git.v4/fixtures"
+ "gopkg.in/src-d/go-git.v4/plumbing"
. "gopkg.in/check.v1"
)
@@ -24,7 +24,7 @@ func (s *BlameSuite) mockBlame(t blameTest, c *C) (blame *Blame) {
r, ok := s.Repositories[t.repo]
c.Assert(ok, Equals, true)
- commit, err := r.Commit(core.NewHash(t.rev))
+ commit, err := r.Commit(plumbing.NewHash(t.rev))
c.Assert(err, IsNil, Commentf("%v: repo=%s, rev=%s", err, r, t.rev))
f, err := commit.File(t.path)
@@ -36,7 +36,7 @@ func (s *BlameSuite) mockBlame(t blameTest, c *C) (blame *Blame) {
blamedLines := make([]*line, 0, len(t.blames))
for i := range t.blames {
- commit, err := r.Commit(core.NewHash(t.blames[i]))
+ commit, err := r.Commit(plumbing.NewHash(t.blames[i]))
c.Assert(err, IsNil)
l := &line{
author: commit.Author.Email,
@@ -47,7 +47,7 @@ func (s *BlameSuite) mockBlame(t blameTest, c *C) (blame *Blame) {
return &Blame{
Path: t.path,
- Rev: core.NewHash(t.rev),
+ Rev: plumbing.NewHash(t.rev),
Lines: blamedLines,
}
}
@@ -65,7 +65,7 @@ func (s *BlameSuite) TestBlame(c *C) {
r, ok := s.Repositories[t.repo]
c.Assert(ok, Equals, true)
- commit, err := r.Commit(core.NewHash(t.rev))
+ commit, err := r.Commit(plumbing.NewHash(t.rev))
c.Assert(err, IsNil)
obt, err := commit.Blame(t.path)