Switch or create a branch in place from the Source Control header (#38836)

Adds a branch picker to the Source Control header for switching or creating a branch in place. Switching is disabled while an agent is working in the workspace, and results show as toasts.
This commit is contained in:
Brennan Benson
2026-11-07 18:33:25 -08:00
committed by GitHub
parent 4bee5ac0ac
commit a7ba6a7cb1
55 changed files with 2914 additions and 430 deletions
@@ -10,6 +10,7 @@ type RuntimeGitCommandName =
| 'getRuntimeGitMutationInFlight'
| 'abortRuntimeGitMerge'
| 'abortRuntimeGitRebase'
| 'switchRuntimeGitBranch'
| 'checkoutRuntimeGitBranch'
| 'listRuntimeGitLocalBranches'
| 'getRuntimeGitDiff'
@@ -57,6 +58,7 @@ export function installRuntimeGitCommandSurface(
getRuntimeGitMutationInFlight: commands.getRuntimeGitMutationInFlight.bind(commands),
abortRuntimeGitMerge: commands.abortRuntimeGitMerge.bind(commands),
abortRuntimeGitRebase: commands.abortRuntimeGitRebase.bind(commands),
switchRuntimeGitBranch: commands.switchRuntimeGitBranch.bind(commands),
checkoutRuntimeGitBranch: commands.checkoutRuntimeGitBranch.bind(commands),
listRuntimeGitLocalBranches: commands.listRuntimeGitLocalBranches.bind(commands),
getRuntimeGitDiff: commands.getRuntimeGitDiff.bind(commands),