MCPcopy Create free account
hub / github.com/go-git/go-git / OpenFileIndex

Function OpenFileIndex

plumbing/format/commitgraph/v2/file.go:64–66  ·  view source on GitHub ↗

OpenFileIndex opens a serialized commit graph file in the format described at https://github.com/git/git/blob/master/Documentation/technical/commit-graph-format.txt

(reader ReaderAtCloser)

Source from the content-addressed store, hash-verified

62// OpenFileIndex opens a serialized commit graph file in the format described at
63// https://github.com/git/git/blob/master/Documentation/technical/commit-graph-format.txt
64func OpenFileIndex(reader ReaderAtCloser) (Index, error) {
65 return OpenFileIndexWithParent(reader, nil)
66}
67
68// OpenFileIndexWithParent opens a serialized commit graph file in the format described at
69// https://github.com/git/git/blob/master/Documentation/technical/commit-graph-format.txt

Callers 1

OpenChainOrFileIndexFunction · 0.70

Calls 1

OpenFileIndexWithParentFunction · 0.85

Tested by

no test coverage detected