pub struct CommitAnalysis {
pub detected_type: String,
pub detected_scope: String,
pub proposed_message: String,
pub file_changes: FileChanges,
pub diff_summary: String,
pub diff_file: String,
}Expand description
Commit analysis information
Fields§
§detected_type: StringAutomatically detected conventional commit type (feat, fix, docs, test, chore, etc.)
detected_scope: StringAutomatically detected scope based on file paths (cli, git, data, etc.)
proposed_message: StringAI-generated conventional commit message based on file changes
file_changes: FileChangesDetailed statistics about file changes in this commit
diff_summary: StringGit diff –stat output showing lines changed per file
diff_file: StringPath to diff file showing line-by-line changes
Implementations§
Source§impl CommitAnalysis
impl CommitAnalysis
Sourcepub fn analyze_commit(repo: &Repository, commit: &Commit<'_>) -> Result<Self>
pub fn analyze_commit(repo: &Repository, commit: &Commit<'_>) -> Result<Self>
Analyze a commit and generate analysis information
Trait Implementations§
Source§impl Clone for CommitAnalysis
impl Clone for CommitAnalysis
Source§fn clone(&self) -> CommitAnalysis
fn clone(&self) -> CommitAnalysis
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 moreSource§impl Debug for CommitAnalysis
impl Debug for CommitAnalysis
Source§impl<'de> Deserialize<'de> for CommitAnalysis
impl<'de> Deserialize<'de> for CommitAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitAnalysis
impl RefUnwindSafe for CommitAnalysis
impl Send for CommitAnalysis
impl Sync for CommitAnalysis
impl Unpin for CommitAnalysis
impl UnwindSafe for CommitAnalysis
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