zed/crates/sidebar
zed-zippy[bot] 8af115d0aa
Improve bare repo support (#55153) (cherry-pick to preview) (#55680)
Cherry-pick of #55153 to preview

----
Fixes https://github.com/zed-industries/zed/issues/54830

This fixes a bugs where
* when there's no main worktree, we treated the first linked worktree as
main
* the titlebar and sidebar showed two different things when opening a
linked wortree directly

When there's no main worktree, our "project group key" will be the bare
repo path. For displaying this to the user, we try to present something
meaningful:
* If the bare repo is `foo.git`, we'll say "foo"
* If the bare repo is "bar/.bare", we'll "bar"

Release Notes:

- Fixed bugs in Zed's sidebar and titlebar when editing in git worktrees
created from bare repositories.

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2026-05-04 16:57:48 +00:00
..
src Improve bare repo support (#55153) (cherry-pick to preview) (#55680) 2026-05-04 16:57:48 +00:00
Cargo.toml Remove smol as a dependency from a bunch of crates (#53603) 2026-04-24 10:29:51 +00:00
LICENSE-GPL Move sidebar back out of the panel (#51723) 2026-03-17 03:48:20 +00:00