aboutsummaryrefslogtreecommitdiffstats
path: root/blame.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.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.go')
-rw-r--r--blame.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/blame.go b/blame.go
index e698c78..f583299 100644
--- a/blame.go
+++ b/blame.go
@@ -8,13 +8,13 @@ import (
"strings"
"unicode/utf8"
- "gopkg.in/src-d/go-git.v4/core"
"gopkg.in/src-d/go-git.v4/diff"
+ "gopkg.in/src-d/go-git.v4/plumbing"
)
type Blame struct {
Path string
- Rev core.Hash
+ Rev plumbing.Hash
Lines []*line
}
@@ -256,7 +256,7 @@ func prettyPrintAuthor(c *Commit) string {
// utility function to calculate the number of runes needed
// to print the longest author name in the blame of a file.
func (b *blame) maxAuthorLength() int {
- memo := make(map[core.Hash]struct{}, len(b.graph)-1)
+ memo := make(map[plumbing.Hash]struct{}, len(b.graph)-1)
fVs := b.graph[len(b.graph)-1]
m := 0
for ln := range fVs {