MCPcopy
hub / github.com/git-lfs/git-lfs / NewObjectScannerFrom

Function NewObjectScannerFrom

git/object_scanner.go:61–63  ·  view source on GitHub ↗

NewObjectScannerFrom returns a new `*ObjectScanner` populated with data from the given `io.Reader`, "r". It supplies no close function, and discards any input given to the Scan() function.

(db *gitobj.ObjectDatabase)

Source from the content-addressed store, hash-verified

59// the given `io.Reader`, "r". It supplies no close function, and discards any
60// input given to the Scan() function.
61func NewObjectScannerFrom(db *gitobj.ObjectDatabase) *ObjectScanner {
62 return &ObjectScanner{gitobj: db}
63}
64
65// Scan scans for a particular object given by the "oid" parameter. Once the
66// scan is complete, the Contents(), Sha1(), Size() and Type() functions may be

Callers 3

NewObjectScannerFunction · 0.85

Calls

no outgoing calls