-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_cherry_pick.json
More file actions
69 lines (69 loc) · 2.46 KB
/
git_cherry_pick.json
File metadata and controls
69 lines (69 loc) · 2.46 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "@rethunk/mcp-multi-root-git: git_cherry_pick",
"description": "Parameter schema for the 'git_cherry_pick' 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": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "Sources to cherry-pick: SHA, `A..B` range, or branch name. Branch sources resolve to `onto..<branch>` (only commits missing from destination)."
},
"onto": {
"description": "Destination branch. Defaults to the currently checked-out branch.",
"type": "string"
},
"deleteMergedBranches": {
"default": false,
"description": "After all commits apply, delete each branch-kind source locally (`git branch -d`) when it is fully merged into the destination. Protected names always skipped; never touches remote refs.",
"type": "boolean"
},
"deleteMergedWorktrees": {
"default": false,
"description": "After success, remove any local worktree attached to a branch-kind source (`git worktree remove`). Protected tails always skipped.",
"type": "boolean"
},
"strictMergedRefEquality": {
"default": false,
"description": "When false (default), branch deletion uses patch-id equivalence: a source branch is deleted when every commit it contains has a content-equivalent commit on the destination (same diff, different SHA — the normal cherry-pick outcome). Set to true to require strict ref ancestry (`git branch -d` semantics), which will refuse deletion after a cherry-pick because the SHA differs.",
"type": "boolean"
}
},
"required": [
"allWorkspaceRoots",
"format",
"sources",
"deleteMergedBranches",
"deleteMergedWorktrees",
"strictMergedRefEquality"
],
"additionalProperties": false
}