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

Struct ObjectScanner

git/object_scanner.go:28–36  ·  view source on GitHub ↗

ObjectScanner is a scanner type that scans for Git objects reference-able in Git's object database by their unique OID.

Source from the content-addressed store, hash-verified

26// ObjectScanner is a scanner type that scans for Git objects reference-able in
27// Git's object database by their unique OID.
28type ObjectScanner struct {
29 // object is the object that the ObjectScanner last scanned, or nil.
30 object *object
31 // err is the error (if any) that the ObjectScanner encountered during
32 // its last scan, or nil.
33 err error
34
35 gitobj *gitobj.ObjectDatabase
36}
37
38// NewObjectScanner constructs a new instance of the `*ObjectScanner` type and
39// returns it. It backs the ObjectScanner with an ObjectDatabase from the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected