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 run `git stash list` on every file save (#59042)

Lukas Geigera31d3505daa3
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rs
index 57d9c4554c7..117433e47ec 100644
--- a/crates/project/src/git_store.rs
+++ b/crates/project/src/git_store.rs
@@ -8581,7 +8581,6 @@ impl Repository {
let has_head = prev_snapshot.head_commit.is_some();
- let stash_entries = backend.stash_entries().await?;
let changed_path_statuses = cx
.background_spawn(async move {
let mut changed_paths =
@@ -8638,11 +8637,6 @@ impl Repository {
.await?;
this.update(&mut cx, |this, cx| {
- if this.snapshot.stash_entries != stash_entries {
- cx.emit(RepositoryEvent::StashEntriesChanged);
- this.snapshot.stash_entries = stash_entries;
- }
-
if !changed_path_statuses.is_empty() {
cx.emit(RepositoryEvent::StatusesChanged);
this.snapshot