Skip to main content

Module odb

Module odb 

Source
Expand description

Object database backends and loose/packed storage.

Modules§

builder
Build an Odb with a custom primary store and optional read overlays.
store
Pluggable object storage backends and the ObjectStore trait surface.

Structs§

CompositeStore
Read-only store that consults an ordered list of backends.
FilesSource
Read/write object storage backed by one objects/ directory tree.
LooseStore
On-disk loose object store for one objects/ directory.
MemoryStore
In-memory object map keyed by ObjectId.
ObjectStream
Streaming handle for a single object’s uncompressed payload.
Odb
A loose-object database rooted at a given objects/ directory.
OdbBuilder
Configure and construct an Odb with a pluggable primary backend.
WriteOptions
Options for Odb::write_with_options.

Constants§

BULK_NEW_LOOSE_WRITE
WriteOptions for parallel staging of new worktree blobs (bulk git add).
BULK_TRACKED_RESTAGE_LOOSE_WRITE
Parallel restage of tracked modifications (objects may already be loose or packed).

Traits§

ObjectStore
Read-only object storage: lookup, metadata, streaming, and enumeration.
WritableObjectStore
Object storage that supports inserting new objects.

Functions§

hash_algo_for_git_dir
Resolve the repository hash algorithm from extensions.objectformat in git_dir’s config.
hash_algo_for_objects_dir
Like hash_algo_for_git_dir but takes an objects/ directory path.