-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_merge.json
More file actions
79 lines (79 loc) · 2.43 KB
/
git_merge.json
File metadata and controls
79 lines (79 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "@rethunk/mcp-multi-root-git: git_merge",
"description": "Parameter schema for the 'git_merge' MCP tool.",
"type": "object",
"properties": {
"workspaceRoot": {
"description": "Highest-priority override.",
"type": "string"
},
"rootIndex": {
"description": "0-based index into the MCP file roots list; ignored when workspaceRoot is set.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"allWorkspaceRoots": {
"default": false,
"description": "Fan out across all MCP file roots.",
"type": "boolean"
},
"format": {
"default": "markdown",
"type": "string",
"enum": [
"markdown",
"json"
]
},
"sources": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Branches to merge into the destination, in order."
},
"into": {
"description": "Destination branch. Defaults to the currently checked-out branch.",
"type": "string"
},
"strategy": {
"default": "auto",
"description": "`auto` (default): cascade fast-forward → rebase → merge-commit per source. `ff-only`: only fast-forward, fail if diverged. `rebase`: rebase source onto destination, then fast-forward (no merge-commit fallback). `merge`: always create a merge commit (no fast-forward).",
"type": "string",
"enum": [
"auto",
"ff-only",
"rebase",
"merge"
]
},
"message": {
"description": "Merge commit message (used only when a merge commit is created).",
"type": "string"
},
"deleteMergedBranches": {
"default": false,
"description": "After all sources merge cleanly, delete each source branch locally (`git branch -d`). Protected names always skipped. Never affects remote branches.",
"type": "boolean"
},
"deleteMergedWorktrees": {
"default": false,
"description": "After all sources merge cleanly, remove any local worktree currently checked out on a source branch (`git worktree remove`). Protected tails always skipped.",
"type": "boolean"
}
},
"required": [
"allWorkspaceRoots",
"format",
"sources",
"strategy",
"deleteMergedBranches",
"deleteMergedWorktrees"
],
"additionalProperties": false
}