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.

Show git panel footer even when on a detached HEAD (#25968)

Max Brunsfeld922aaa053415
diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs
index f76d8b2bda6..f516341731a 100644
--- a/crates/git_ui/src/git_panel.rs
+++ b/crates/git_ui/src/git_panel.rs
@@ -2006,7 +2006,7 @@ impl GitPanel {
};
let editor_focus_handle = self.commit_editor.focus_handle(cx);
- let branch = active_repo.read(cx).current_branch()?.clone();
+ let branch = active_repo.read(cx).current_branch().cloned();
let footer_size = px(32.);
let gap = px(8.0);
@@ -2027,7 +2027,7 @@ impl GitPanel {
.child(PanelRepoFooter::new(
"footer-button",
display_name,
- Some(branch),
+ branch,
Some(git_panel),
Some(branches),
))