Struct git_odb::compound::Store[][src]

pub struct Store {
    pub loose: Store,
    pub bundles: Vec<Bundle>,
}
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: Store

A 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

The error type used for all trait methods. Read more

Write objects using the given kind of hash into the database, returning id to reference it in subsequent reads. Read more

As write, but takes an object kind along with its encoded bytes.

As write, but takes an input stream. This is commonly used for writing blobs directly without reading them to memory first. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.