Struct git_odb::compound::Store  [−][src]
Expand description
An object database with tiered lookup packs and loose objects. This is a typical git database as used in git repositories, sans ‘alternates’.
Fields
loose: StoreA loose object database into which new objects are written
bundles: Vec<Bundle>All packs in the objects/packs directory
Implementations
Find an object as identified by ObjectId and store its data in full in the provided buffer.
This will search the object in all contained object databases.
Use a pack_cache to accelerate pack access by reducing the amount of work duplication, or pack::cache::Never to disable any caching.
Instantiation
Returns a compound database as initialized from the given git objects_directory, commonly .git/objects.
Only loose and packed objects will be considered. See the linked Db for a database with support for git alternates, i.e. linking to other repositories.
Trait Implementations
As write, but takes an object kind along with its encoded bytes.