diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2019-05-14 16:51:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 16:51:33 +0200 |
commit | 52fcf7d8a3c2da58769e105a26240e3e697fedeb (patch) | |
tree | ed4fe508e6d78a459af7e74421769a6a9954e446 /plumbing/format/commitgraph/memory.go | |
parent | e17ee112ca6cc7db0a732c0676b61511e84ec899 (diff) | |
parent | d2596b8d7fe07aecf83b5377c527f5d8999f7d16 (diff) | |
download | go-git-52fcf7d8a3c2da58769e105a26240e3e697fedeb.tar.gz |
Merge pull request #1132 from filipnavara/commitgraph-obj
plumbing: object, add APIs for traversing over commit graphs
Diffstat (limited to 'plumbing/format/commitgraph/memory.go')
-rw-r--r-- | plumbing/format/commitgraph/memory.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plumbing/format/commitgraph/memory.go b/plumbing/format/commitgraph/memory.go index f084b85..a4a96e9 100644 --- a/plumbing/format/commitgraph/memory.go +++ b/plumbing/format/commitgraph/memory.go @@ -4,6 +4,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing"
)
+// MemoryIndex provides a way to build the commit-graph in memory
+// for later encoding to file.
type MemoryIndex struct {
commitData []*CommitData
indexMap map[plumbing.Hash]int
|