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_ui: Avoid cloning repository snapshot when rendering Git graph (#66180)

Remco Smits57c7b10ece67
diff --git a/crates/git_ui/src/git_graph.rs b/crates/git_ui/src/git_graph.rs
index 07644fc41fb..b4b13252fc4 100644
--- a/crates/git_ui/src/git_graph.rs
+++ b/crates/git_ui/src/git_graph.rs
@@ -3031,7 +3031,6 @@ impl GitGraph {
let head_branch_name: Option<SharedString> = repository
.read(cx)
- .snapshot()
.branch
.as_ref()
.map(|branch| SharedString::from(branch.name().to_string()));
@@ -3883,7 +3882,6 @@ impl GitGraph {
let head_branch_name: Option<SharedString> = self.get_repository(cx).and_then(|repo| {
repo.read(cx)
- .snapshot()
.branch
.as_ref()
.map(|branch| SharedString::from(branch.name().to_string()))