(r *git.Repository, fs billy.Filesystem)
| 82 | } |
| 83 | |
| 84 | func getCommitNodeIndex(r *git.Repository, fs billy.Filesystem) (commitgraph.CommitNodeIndex, io.ReadCloser) { |
| 85 | file, err := fs.Open(path.Join("objects", "info", "commit-graph")) |
| 86 | if err == nil { |
| 87 | index, err := commitgraph_fmt.OpenFileIndex(file) |
| 88 | if err == nil { |
| 89 | return commitgraph.NewGraphCommitNodeIndex(index, r.Storer), file |
| 90 | } |
| 91 | file.Close() |
| 92 | } |
| 93 | |
| 94 | return commitgraph.NewObjectCommitNodeIndex(r.Storer), nil |
| 95 | } |
| 96 | |
| 97 | type commitAndPaths struct { |
| 98 | commit commitgraph.CommitNode |
no test coverage detected
searching dependent graphs…