Skip to main content

generate_commit_message

Function generate_commit_message 

Source
pub fn generate_commit_message(cfg: &Config) -> Result<String>
Expand description

Generate a commit message from the current git repo state.

This is the main entry point for library users. It gathers context from git, builds a prompt, executes the AI backend, and returns the formatted message.