Struct jj_lib::commit_builder::CommitBuilder
source · pub struct CommitBuilder<'repo> { /* private fields */ }
Implementations§
source§impl CommitBuilder<'_>
impl CommitBuilder<'_>
sourcepub fn detach(self) -> DetachedCommitBuilder
pub fn detach(self) -> DetachedCommitBuilder
Detaches from &'repo mut
lifetime. The returned builder can be used in
order to obtain a temporary commit object.
pub fn parents(&self) -> &[CommitId]
pub fn set_parents(self, parents: Vec<CommitId>) -> Self
pub fn predecessors(&self) -> &[CommitId]
pub fn set_predecessors(self, predecessors: Vec<CommitId>) -> Self
pub fn tree_id(&self) -> &MergedTreeId
pub fn set_tree_id(self, tree_id: MergedTreeId) -> Self
pub fn change_id(&self) -> &ChangeId
pub fn set_change_id(self, change_id: ChangeId) -> Self
pub fn generate_new_change_id(self) -> Self
pub fn description(&self) -> &str
pub fn set_description(self, description: impl Into<String>) -> Self
pub fn committer(&self) -> &Signature
pub fn set_committer(self, committer: Signature) -> Self
pub fn sign_settings(&self) -> &SignSettings
pub fn set_sign_behavior(self, sign_behavior: SignBehavior) -> Self
pub fn set_sign_key(self, sign_key: Option<String>) -> Self
pub fn write(self) -> BackendResult<Commit>
Auto Trait Implementations§
impl<'repo> Freeze for CommitBuilder<'repo>
impl<'repo> !RefUnwindSafe for CommitBuilder<'repo>
impl<'repo> !Send for CommitBuilder<'repo>
impl<'repo> !Sync for CommitBuilder<'repo>
impl<'repo> Unpin for CommitBuilder<'repo>
impl<'repo> !UnwindSafe for CommitBuilder<'repo>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more