This repository was archived by the owner on Sep 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
plumbing/format/commitgraph Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ import (
14
14
var (
15
15
// ErrUnsupportedVersion is returned by OpenFileIndex when the commit graph
16
16
// file version is not supported.
17
- ErrUnsupportedVersion = errors .New ("Unsuported version" )
17
+ ErrUnsupportedVersion = errors .New ("Unsupported version" )
18
18
// ErrUnsupportedHash is returned by OpenFileIndex when the commit graph
19
19
// hash function is not supported. Currently only SHA-1 is defined and
20
20
// supported
21
- ErrUnsupportedHash = errors .New ("Unsuported hash algorithm" )
21
+ ErrUnsupportedHash = errors .New ("Unsupported hash algorithm" )
22
22
// ErrMalformedCommitGraphFile is returned by OpenFileIndex when the commit
23
23
// graph file is corrupted.
24
24
ErrMalformedCommitGraphFile = errors .New ("Malformed commit graph file" )
Original file line number Diff line number Diff line change @@ -60,12 +60,11 @@ func (mi *MemoryIndex) Hashes() []plumbing.Hash {
60
60
}
61
61
62
62
// Add adds new node to the memory index
63
- func (mi * MemoryIndex ) Add (hash plumbing.Hash , node * Node ) error {
63
+ func (mi * MemoryIndex ) Add (hash plumbing.Hash , node * Node ) {
64
64
// The parent indexes are calculated lazily in GetNodeByIndex
65
65
// which allows adding nodes out of order as long as all parents
66
66
// are eventually resolved
67
67
node .ParentIndexes = nil
68
68
mi .indexMap [hash ] = len (mi .commitData )
69
69
mi .commitData = append (mi .commitData , node )
70
- return nil
71
70
}
You can’t perform that action at this time.
0 commit comments