From fdc6282544ad7598531cadad1eb243fbc9638c66 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Wed, 4 Feb 2026 14:29:30 -0500 Subject: [PATCH] git: Fix branch diff not updating when committing or changing branches (#48388) This regressed in #47619 -- previously we would throw away and reopen the diffs used to construct the branch diff pretty eagerly, and as a result the branch diff would update itself when you committed or switched branches. We inadvertently lost that when we switched to retaining those diffs in the git store. Release Notes: - N/A --- crates/project/src/git_store/branch_diff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project/src/git_store/branch_diff.rs b/crates/project/src/git_store/branch_diff.rs index 7b64f540e2a0a55b2e29523f3856eb04c600c28e..88f510f68402f91f864cf7777e8f4c9b3392d632 100644 --- a/crates/project/src/git_store/branch_diff.rs +++ b/crates/project/src/git_store/branch_diff.rs @@ -70,7 +70,7 @@ impl BranchDiff { } GitStoreEvent::RepositoryUpdated( event_repo_id, - RepositoryEvent::StatusesChanged, + RepositoryEvent::StatusesChanged | RepositoryEvent::BranchChanged, _, ) => this .repo