git_panel: Fix Stage All/Unstage All ignoring partially staged files (#42677)

Release Notes:

- Fix "Stage All"/"Unstage All" not affecting partially staged files
This commit is contained in:
Jakub Konka
2025-11-13 23:57:05 +01:00
committed by GitHub
parent e1d295a6b4
commit 3c577ba019
+2 -2
View File
@@ -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)