pub struct CommitManager {
pub repo_path: PathBuf,
pub message_templates: HashMap<String, String>,
pub auto_stage: bool,
pub sign_commits: bool,
}
Expand description
Commit management system
Fields§
§repo_path: PathBuf
Repository path
message_templates: HashMap<String, String>
Commit message templates
auto_stage: bool
Automatic staging of changes
sign_commits: bool
Sign commits with GPG
Implementations§
Source§impl CommitManager
impl CommitManager
pub fn new(repo_path: PathBuf) -> Result<Self, String>
pub fn initialize_session(&self, _session_id: &str) -> Result<(), String>
pub fn generate_commit_message( &self, edit: &ModifiableEdit, classification: &ClassifiedEdit, ) -> String
Trait Implementations§
Source§impl Clone for CommitManager
impl Clone for CommitManager
Source§fn clone(&self) -> CommitManager
fn clone(&self) -> CommitManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CommitManager
impl RefUnwindSafe for CommitManager
impl Send for CommitManager
impl Sync for CommitManager
impl Unpin for CommitManager
impl UnwindSafe for CommitManager
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