Skip to main content

commit_with_generated_message

Function commit_with_generated_message 

Source
pub fn commit_with_generated_message(
    diff: &str,
    commit_agent: &str,
    git_user_name: Option<&str>,
    git_user_email: Option<&str>,
    ctx: &mut PhaseContext<'_>,
) -> CommitResultFallback
Expand description

Create a commit with an automatically generated message using the standard pipeline.

This is a replacement for commit_with_auto_message_fallback_result in git_helpers that uses the standard agent pipeline with proper logging and fallback support.

§Arguments

  • diff - The git diff to generate a commit message from
  • commit_agent - The primary agent to use for commit generation
  • git_user_name - Optional git user name
  • git_user_email - Optional git user email
  • ctx - The phase context containing registry, logger, colors, config, and timer

§Returns

Returns CommitResultFallback indicating success, no changes, or failure.