(hashes []plumbing.Hash)
| 135 | } |
| 136 | |
| 137 | func (e *Encoder) encodeOidLookup(hashes []plumbing.Hash) (err error) { |
| 138 | for _, hash := range hashes { |
| 139 | if _, err = e.Write(hash[:]); err != nil { |
| 140 | return err |
| 141 | } |
| 142 | } |
| 143 | return |
| 144 | } |
| 145 | |
| 146 | func (e *Encoder) encodeCommitData(hashes []plumbing.Hash, hashToIndex map[plumbing.Hash]uint32, idx Index) (extraEdges []uint32, err error) { |
| 147 | for _, hash := range hashes { |