preview_git_commit
Preview git commit operations in dry-run mode to validate messages, check repository status, and list files to be committed without executing the commit.
Instructions
Preview git commit operation without executing (dry-run mode).
Args: message: Commit message to preview 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)
Returns: Dict containing: - message: The commit message - is_valid: Whether message passes validation - files_to_commit: List of files that would be committed - dry_run: Always True for this tool - repository_status: Current repository state
Input Schema
Name | Required | Description | Default |
---|---|---|---|
message | Yes | ||
repo_path | Yes | ||
sign_off | No | ||
stage_all | No |