[−][src]Struct gitdag::GitDag
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]
git_repo: &Repository,
dag_dir: &Path,
main_branch: &str
) -> Result<Self>
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,