Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git: Do not re-compute git_access for `.git/` changes (#60503)

Lukas Geiger5333ca1af790
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index 46fd0949dff..8c394255c98 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -1189,12 +1189,7 @@ impl GitPanel {
| GitStoreEvent::ActiveRepositoryChanged(_) => {
this.schedule_update(window, cx);
}
- GitStoreEvent::RepositoryUpdated(
- _,
- RepositoryEvent::GitDirectoryChanged,
- true,
- )
- | GitStoreEvent::GlobalConfigurationUpdated => {
+ GitStoreEvent::GlobalConfigurationUpdated => {
this.git_access = None;
this.schedule_update(window, cx);
}
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rs
index eb998cb7d96..2c279742dfc 100644
--- a/crates/project/src/git_store.rs
+++ b/crates/project/src/git_store.rs
@@ -602,7 +602,6 @@ pub enum RepositoryEvent {
GitWorktreeListChanged,
PendingOpsChanged { pending_ops: SumTree<PendingOps> },
GraphEvent((LogSource, LogOrder), GitGraphEvent),
- GitDirectoryChanged,
}
#[derive(Clone, Debug)]
@@ -2544,7 +2543,6 @@ impl GitStore {
|| update.new_work_directory_abs_path.as_ref() == Some(repo_abs_path)
}) {
repository.reload_buffer_diff_bases(cx);
- cx.emit(RepositoryEvent::GitDirectoryChanged);
}
});
}