pub struct CommitBuilder(/* private fields */);Expand description
A builder for creating commits in a working tree.
This struct provides a fluent interface for setting the parameters of a commit and then creating it.
Implementations§
Source§impl CommitBuilder
impl CommitBuilder
Sourcepub fn specific_files(self, specific_files: &[&Path]) -> Self
pub fn specific_files(self, specific_files: &[&Path]) -> Self
Sourcepub fn allow_pointless(self, allow_pointless: bool) -> Self
pub fn allow_pointless(self, allow_pointless: bool) -> Self
Sourcepub fn reporter(self, reporter: &dyn PyCommitReporter) -> Self
pub fn reporter(self, reporter: &dyn PyCommitReporter) -> Self
Sourcepub fn set_revprop(self, key: &str, value: &str) -> Result<Self, Error>
pub fn set_revprop(self, key: &str, value: &str) -> Result<Self, Error>
Set a revision property for this commit.
Revision properties are key-value pairs that can be attached to commits to store additional metadata beyond the standard commit fields.
§Parameters
key- The property key (name).value- The property value as a string.
§Returns
Self for method chaining, or an error if the operation failed.
Trait Implementations§
Source§impl From<GenericWorkingTree> for CommitBuilder
impl From<GenericWorkingTree> for CommitBuilder
Auto Trait Implementations§
impl Freeze for CommitBuilder
impl !RefUnwindSafe for CommitBuilder
impl Send for CommitBuilder
impl Sync for CommitBuilder
impl Unpin for CommitBuilder
impl UnsafeUnpin for CommitBuilder
impl UnwindSafe for CommitBuilder
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