From 3c577ba0195c73f4c388e36493c906ae276ced92 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 13 Nov 2025 23:57:05 +0100 Subject: [PATCH] git_panel: Fix Stage All/Unstage All ignoring partially staged files (#42677) Release Notes: - Fix "Stage All"/"Unstage All" not affecting partially staged files --- crates/project/src/git_store.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rs index e75bafa2d2bdc3b8854e71d7e1e7c543c131d2ee..497c93833cba612ef25237b30603eb4318c902e0 100644 --- a/crates/project/src/git_store.rs +++ b/crates/project/src/git_store.rs @@ -4060,7 +4060,7 @@ impl Repository { } else { Some(entry.repo_path) } - } else if entry.status.staging().has_staged() { + } else if entry.status.staging().is_fully_staged() { None } else { Some(entry.repo_path) @@ -4080,7 +4080,7 @@ impl Repository { } else { Some(entry.repo_path) } - } else if entry.status.staging().has_unstaged() { + } else if entry.status.staging().is_fully_unstaged() { None } else { Some(entry.repo_path)