1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#![deny(missing_docs, unsafe_code, rust_2018_idioms)]
//! Git stores all of its data as _Objects_, which ata along with a hash over all data. Thus it's an
//! object store indexed by data with inherent deduplication: the same data will have the same hash, and thus occupy the same
//! space within the store.
//!
//! There are various flavours of object stores, all of which supporting iteration, reading and possibly writing.
//!
//! * [`loose::Store`]
//! * A database storing one object per file, named by its hash, using zlib compression.
//! * O(1) reads and writes, bound by IO operations per second
//! * [`compound::Store`]
//! * A database using a [`loose::Store`] for writes and multiple [`pack::Bundle`]s for object reading. It can also refer to multiple
//! additional [`compound::Store`] instances using git-alternates.
//! * This is the database closely resembling the object database in a git repository, and probably what most people would want to use.
//! * [`linked::Store`]
//! * A database containing various [`compound::Stores`][compound::Store] as gathered from `alternates` files.
pub use git_pack as pack;
pub use pack::{data, Find, FindExt};
mod store;
pub use store::{compound, linked, loose, sink, Sink};
pub mod alternate;
mod write;
pub use write::Write;