From fad06dd00cd6843dcfa284805cda070a18f3681c Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Fri, 12 Dec 2025 17:59:35 -0500 Subject: [PATCH] git: Show all branches in branch picker empty state (#44742) This fixes an issue where a user could get confused by the branch picker because it would only show the 10 most recent branches, instead of all branches. Release Notes: - git: Show all branches in branch picker when search field is empty --- crates/git_ui/src/branch_picker.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/git_ui/src/branch_picker.rs b/crates/git_ui/src/branch_picker.rs index 90b5c4bb284112c8a13ad406da2b7424e982298a..8a08736d8bace6a77963c4325406d340903f1b73 100644 --- a/crates/git_ui/src/branch_picker.rs +++ b/crates/git_ui/src/branch_picker.rs @@ -636,7 +636,6 @@ impl PickerDelegate for BranchListDelegate { return Task::ready(()); }; - const RECENT_BRANCHES_COUNT: usize = 10; let display_remotes = self.display_remotes; cx.spawn_in(window, async move |picker, cx| { let mut matches: Vec = if query.is_empty() { @@ -649,7 +648,6 @@ impl PickerDelegate for BranchListDelegate { !branch.is_remote() } }) - .take(RECENT_BRANCHES_COUNT) .map(|branch| Entry::Branch { branch, positions: Vec::new(),