Merge
merge
GitMergeTool — squash-merge a branch into a target branch.
GitMergeTool
Bases: AXMTool
Squash-merge a branch into a target branch and commit.
Checks out target_branch, runs git merge --squash <branch>, then
commits the squashed changes (honouring the identity-profile system).
Registered as git_merge via axm.tools entry point.
Source code in packages/axm-git/src/axm_git/tools/merge.py
name
property
Tool name used for MCP registration.
execute(*, branch, target_branch='main', message=None, path='.', **kwargs)
Squash-merge branch into target_branch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
branch
|
str
|
The branch to merge in (required). |
required |
target_branch
|
str
|
The branch to merge into (default |
'main'
|
message
|
str | None
|
Commit message for the squash commit. Defaults to
|
None
|
path
|
str
|
Repository path. |
'.'
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with |