Trait git_repository::prelude::ReferenceAccessExt[][src]

pub trait ReferenceAccessExt: Access + Sized {
    fn tag(
        &self,
        name: impl AsRef<str>,
        target: impl Into<ObjectId>,
        constraint: PreviousValue
    ) -> Result<Vec<RefEdit>, Error> { ... }
fn namespace(&self) -> Result<Option<Namespace>, Error> { ... }
fn clear_namespace(&mut self) -> Result<Option<Namespace>, Error> { ... }
fn set_namespace<'a, Name, E>(
        &mut self,
        namespace: Name
    ) -> Result<Option<Namespace>, Error>
    where
        Name: TryInto<PartialNameRef<'a>, Error = E>,
        Error: From<E>
, { ... }
fn reference<Name, E>(
        &self,
        name: Name,
        target: impl Into<ObjectId>,
        constraint: PreviousValue,
        log_message: impl Into<BString>
    ) -> Result<Reference<'_, Self>, Error>
    where
        Name: TryInto<FullName, Error = E>,
        Error: From<E>
, { ... }
fn edit_reference(
        &self,
        edit: RefEdit,
        lock_mode: Fail,
        log_committer: Option<&Signature>
    ) -> Result<Vec<RefEdit>, Error> { ... }
fn edit_references(
        &self,
        edits: impl IntoIterator<Item = RefEdit>,
        lock_mode: Fail,
        log_committer: Option<&Signature>
    ) -> Result<Vec<RefEdit>, Error> { ... }
fn head(&self) -> Result<Head<'_, Self>, Error> { ... }
fn find_reference<'a, Name, E>(
        &self,
        name: Name
    ) -> Result<Reference<'_, Self>, Error>
    where
        Name: TryInto<PartialNameRef<'a>, Error = E>,
        Error: From<E>
, { ... }
fn references(&self) -> Result<State<'_, Self>, Error> { ... }
fn try_find_reference<'a, Name, E>(
        &self,
        name: Name
    ) -> Result<Option<Reference<'_, Self>>, Error>
    where
        Name: TryInto<PartialNameRef<'a>, Error = E>,
        Error: From<E>
, { ... } }
Expand description

Obtain and alter references comfortably

Provided methods

Implementors