Show current branch name in merge success message

This commit is contained in:
Chris Wanstrath 2026-02-27 07:59:46 -08:00
parent 392d3c787b
commit 7e9d372d96

View File

@ -115,7 +115,7 @@ export async function mergeAndClose(branch: string, opts?: { squash?: boolean; f
spin.text = "Generating commit message" spin.text = "Generating commit message"
await squashCommit(branch, root) await squashCommit(branch, root)
} }
spin.succeed(`${label} ${branch} into current branch`) spin.succeed(`${label} ${branch} into ${current}`)
if (session) await teardownSession(root, branch, session.worktree) if (session) await teardownSession(root, branch, session.worktree)
await git.deleteLocalBranch(branch, root).catch(() => {}) await git.deleteLocalBranch(branch, root).catch(() => {})
return return