Finish removing git repository state and scanning logic from worktrees (#27568)
This PR completes the process of moving git repository state storage and scanning logic from the worktree crate to `project::git_store`. Release Notes: - N/A --------- Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
8f25251faf
commit
e7290df02b
39 changed files with 3121 additions and 3529 deletions
|
@ -522,7 +522,7 @@ impl TitleBar {
|
|||
pub fn render_project_branch(&self, cx: &mut Context<Self>) -> Option<impl IntoElement> {
|
||||
let repository = self.project.read(cx).active_repository(cx)?;
|
||||
let workspace = self.workspace.upgrade()?;
|
||||
let branch_name = repository.read(cx).current_branch()?.name.clone();
|
||||
let branch_name = repository.read(cx).branch.as_ref()?.name.clone();
|
||||
let branch_name = util::truncate_and_trailoff(&branch_name, MAX_BRANCH_NAME_LENGTH);
|
||||
Some(
|
||||
Button::new("project_branch_trigger", branch_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue