[][src]Crate git_object

This crate provides types for read-only git objects backed by bytes provided in gits serialization format as well as mutable versions of these. The latter can be serialized into gits serialization format for objects.

Re-exports

pub use bstr;

Modules

borrowed

Objects sharing data with a backing store to minimize allocations Borrowed objects are read-only structures referencing most data in a byte based backing store.

commit
owned

Mutable objects with each field being separately allocated and mutable. Owned objects are Commits, Trees, Blobs and Tags that can be mutated and serialized.

tree

Structs

Time

A timestamp with timezone support

Enums

Error

The Error used in Kind::from_bytes()

HashKind

Denotes the kind of hash used to identify objects.

Kind

The four types of objects that git differentiates

Sign

Indicates if a number is positive or negative

Constants

SHA1_SIZE

The size of a SHA1 hash digest in bytes