Trait git_repository::prelude::ReferenceAccessExt [−][src]
pub trait ReferenceAccessExt: Access + Sized {
fn tag(
&self,
name: impl AsRef<str>,
target: impl Into<ObjectId>,
lock_mode: Fail,
force: bool
) -> Result<Vec<RefEdit>, Error> { ... }
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 find_reference<'a, Name, E>(
&self,
name: Name
) -> Result<Reference<'_, Self>, Error>
where
Name: TryInto<PartialNameRef<'a>, Error = E>,
Error: From<E>,
{ ... }
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