You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Rebase this worktree onto the parent repo's ${branch} branch. Error: "${errorMessage}". Steps: 1) Check for uncommitted changes - stash or commit them first, 2) git fetch origin (in parent repo at ${repoPath}) to ensure ${branch} is current, 3) git rebase ${branch} (in worktree), 4) Resolve any conflicts carefully - do not lose functionality or introduce regressions, 5) If stashed, git stash pop. Worktree: ${worktreePath}, Parent repo: ${repoPath}.`
67
+
),
68
+
} : undefined,
69
+
})
49
70
}
50
71
}
51
72
@@ -66,7 +87,15 @@ export function GitActionsButtons({
`Merge this worktree's branch into the parent repo's ${branch}. Error: "${errorMessage}". Steps: 1) Ensure all changes in worktree are committed, 2) In parent repo at ${repoPath}, checkout ${branch} and pull latest from origin, 3) Merge the worktree branch into ${branch}, 4) Resolve any conflicts carefully - do not lose functionality or introduce regressions, 5) Push ${branch} to origin. Worktree: ${worktreePath}, Parent repo: ${repoPath}.`
96
+
),
97
+
} : undefined,
98
+
})
70
99
}
71
100
}
72
101
@@ -79,7 +108,21 @@ export function GitActionsButtons({
`Sync the parent repo's ${branch} branch with origin. Error: "${errorMessage}". Steps: 1) git fetch origin, 2) git pull origin ${branch} --ff-only, 3) If that fails, rebase with git rebase origin/${branch}, 4) Resolve any conflicts carefully - do not lose functionality or introduce regressions, 5) Once in sync, git push origin ${branch}. Work in the parent repo at ${repoPath}, not the worktree.`
117
+
),
118
+
} : undefined,
119
+
})
120
+
}
121
+
}
122
+
123
+
consthandleCommit=()=>{
124
+
if(terminalId&&sendInputToTerminal){
125
+
sendInputToTerminal(terminalId,'commit')
83
126
}
84
127
}
85
128
@@ -126,6 +169,16 @@ export function GitActionsButtons({
126
169
/>
127
170
Sync parent with origin
128
171
</DropdownMenuItem>
172
+
{terminalId&&sendInputToTerminal&&(
173
+
<DropdownMenuItemonClick={handleCommit}>
174
+
<HugeiconsIcon
175
+
icon={GitCommitIcon}
176
+
size={12}
177
+
strokeWidth={2}
178
+
/>
179
+
Commit
180
+
</DropdownMenuItem>
181
+
)}
129
182
</DropdownMenuContent>
130
183
</DropdownMenu>
131
184
)
@@ -180,6 +233,22 @@ export function GitActionsButtons({
0 commit comments