MCPcopy Create free account
hub / github.com/driusan/dgit / getObjectAtOffset

Method getObjectAtOffset

git/indexpack.go:163–274  ·  view source on GitHub ↗

Using the index, retrieve an object from the packfile represented by r at offset. The index must be valid for this function to work, it can not retrieve objects before the index is built (ie. during `git index-pack`).

(r io.ReaderAt, offset int64, metaOnly bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

GetObjectMetadataMethod · 0.95
GetObjectMethod · 0.95
getPackedObjectMethod · 0.80

Calls 8

ReadHeaderSizeMethod · 0.95
dataStreamMethod · 0.95
GetContentMethod · 0.95
GetTypeMethod · 0.95
LenMethod · 0.95
GetObjectMethod · 0.95
NewReaderFunction · 0.92
ReadAllMethod · 0.80

Tested by

no test coverage detected