aboutsummaryrefslogtreecommitdiffstats
path: root/commit_walker.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 /commit_walker.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 'commit_walker.go')
-rw-r--r--commit_walker.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commit_walker.go b/commit_walker.go
index e595a84..8685801 100644
--- a/commit_walker.go
+++ b/commit_walker.go
@@ -3,11 +3,11 @@ package git
import (
"io"
- "gopkg.in/src-d/go-git.v4/core"
+ "gopkg.in/src-d/go-git.v4/plumbing"
)
type commitWalker struct {
- seen map[core.Hash]bool
+ seen map[plumbing.Hash]bool
stack []*CommitIter
start *Commit
cb func(*Commit) error
@@ -16,7 +16,7 @@ type commitWalker struct {
// WalkCommitHistory walks the commit history
func WalkCommitHistory(c *Commit, cb func(*Commit) error) error {
w := &commitWalker{
- seen: make(map[core.Hash]bool),
+ seen: make(map[plumbing.Hash]bool),
stack: make([]*CommitIter, 0),
start: c,
cb: cb,