[][src]Struct gitdag::GitDag

pub struct GitDag { /* fields omitted */ }

GitDag maintains segmented changelog as an index on the Git commit graph.

This struct provides a "read-only" view for the commit graph. To read other parts of the git repo, or make changes to the Git commit graph, use a separate git2::Repository object.

The dag part is append-only. It might include vertexes no longer referred by the git repo. Use ancestors(git_heads()) to get commits referred by the git repo, and use & to filter them.

Implementations

impl GitDag[src]

pub fn open(git_dir: &Path, dag_dir: &Path, main_branch: &str) -> Result<Self>[src]

open a Git repo at git_dir. Build index at dag_dir, with specified main_branch.

pub fn open_git_repo(
    git_repo: &Repository,
    dag_dir: &Path,
    main_branch: &str
) -> Result<Self>
[src]

For an git repo, build index at dag_dir with specified main_branch.

pub fn git_references(&self) -> &BTreeMap<String, Vertex>[src]

Get "snapshotted" references.

pub fn git_heads(&self) -> Set[src]

Get "snapshotted" heads.

Trait Implementations

impl Deref for GitDag[src]

type Target = Dag

The resulting type after dereferencing.

Auto Trait Implementations

impl !RefUnwindSafe for GitDag

impl Send for GitDag

impl Sync for GitDag

impl Unpin for GitDag

impl !UnwindSafe for GitDag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,