Skip to main content

Module commit

Module commit 

Source
Expand description

Git commit operations and analysis.

Structs§

CommitAnalysis
Commit analysis information.
CommitAnalysisForAI
Enhanced commit analysis for AI processing with full diff content.
CommitInfo
Commit information structure, generic over analysis type.
CommitInfoForAI
Commit information with enhanced analysis for AI processing.
FileChange
Individual file change.
FileChanges
File changes statistics.
FileDiffRef
Reference to a per-file diff stored on disk.
ScopeCount
One scope name with the number of commits that declared it.
ScopeUsageReport
Report produced by tally_scope_usage: how declared commit scopes compare against a project’s scope taxonomy.

Functions§

refine_message_scope
Replaces the scope in a conventional commit message with the deterministically resolved scope based on the given files and scope definitions.
resolve_scope
Resolves the best scope for a set of files using scope definition file patterns.
tally_scope_usage
Tallies declared conventional-commit scopes across subjects (each the commit’s first message line) against a project’s scope taxonomy.