From f1ce3728cfab30e5439ced1753ecb79ced0b5bee Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Thu, 23 Apr 2026 03:15:03 -0400 Subject: [PATCH] git_ui: Use switch wording in branch picker (#54606) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #54467 This PR changes the branch picker’s confirm label from "Select" to "Switch" to better match the rest of the codebase and the action performed when confirming in the picker. I originally considered using "checkout", but since most places in our codebase use "switch" as the branch command name, I stuck with that. Release Notes: - N/A --- crates/git_ui/src/branch_picker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs index a2cf0cb658..b119d243ad 100644 --- a/crates/git_ui/src/branch_picker.rs +++ b/crates/git_ui/src/branch_picker.rs @@ -601,7 +601,7 @@ impl PickerDelegate for BranchListDelegate { match self.state { PickerState::List | PickerState::NewRemote | PickerState::NewBranch => { match self.branch_filter { - BranchFilter::All | BranchFilter::Remote => "Select branch…", + BranchFilter::All | BranchFilter::Remote => "Switch branch…", } } PickerState::CreateRemote(_) => "Enter a name for this remote…", @@ -1245,7 +1245,7 @@ impl PickerDelegate for BranchListDelegate { }, ) .child( - Button::new("select_branch", "Select") + Button::new("switch_branch", "Switch") .key_binding( KeyBinding::for_action_in(&menu::Confirm, &focus_handle, cx) .map(|kb| kb.size(rems_from_px(12.))),