execute_git_commit
Perform a git commit with safety checks and user approval. Requires force_execute=True for execution, ensuring controlled and secure commit operations. Returns success status, message, and execution details.
Instructions
Execute actual git commit with safety checks and user approval.
SAFETY: Requires force_execute=True to perform actual commit.
Args: message: Commit message to use repo_path: Path to git repository stage_all: Whether to stage all changes before commit (not implemented yet) sign_off: Whether to add sign-off to commit (default: True) force_execute: Must be True to execute actual commit (safety flag)
Returns: Dict containing: - success: Whether commit was successful - message: The commit message used - executed: Whether commit was actually executed - error: Error message (if failed) - dry_run: False if actually executed, True if preview only
Input Schema
Name | Required | Description | Default |
---|---|---|---|
force_execute | No | ||
message | Yes | ||
repo_path | Yes | ||
sign_off | No | ||
stage_all | No |