ZIm/crates/git_ui/src
Cole Miller 6924720b35
Move repository state RPC handlers to the GitStore (#27391)
This is another in the series of PRs to make the GitStore own all
repository state and enable better concurrency control for git
repository scans.

After this PR, the `RepositoryEntry`s stored in worktree snapshots are
used only as a staging ground for local GitStores to pull from after
git-related events; non-local worktrees don't store them at all,
although this is not reflected in the types. GitTraversal and other
places that need information about repositories get it from the
GitStore. The GitStore also takes over handling of the new
UpdateRepository and RemoveRepository messages. However, repositories
are still discovered and scanned on a per-worktree basis, and we're
still identifying them by the (worktree-specific) project entry ID of
their working directory.

- [x] Remove WorkDirectory from RepositoryEntry
- [x] Remove worktree IDs from repository-related RPC messages
- [x] Handle UpdateRepository and RemoveRepository RPCs from the
GitStore

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2025-03-26 18:23:44 -04:00
..
askpass_modal.rs gpui: Rename rounded_md to rounded_sm (#26228) 2025-03-06 17:57:31 +00:00
branch_picker.rs Migrate most callers of git-related worktree APIs to use the GitStore (#27225) 2025-03-21 00:10:17 -04:00
commit_message_prompt.txt git_ui: Try to prompt the model out of including the diff output (#26281) 2025-03-07 15:05:35 +00:00
commit_modal.rs Fix crash when toggling deleted hunk (#27138) 2025-03-24 19:25:56 +00:00
git_panel.rs Move repository state RPC handlers to the GitStore (#27391) 2025-03-26 18:23:44 -04:00
git_panel_settings.rs Add git init button (#26522) 2025-03-12 07:25:19 +00:00
git_ui.rs Make a single re-usable banner component (#27412) 2025-03-25 07:05:25 +00:00
onboarding.rs Make a single re-usable banner component (#27412) 2025-03-25 07:05:25 +00:00
picker_prompt.rs Move "async move" a few characters to the left in cx.spawn() (#26758) 2025-03-19 02:09:02 +00:00
project_diff.rs Move repository state RPC handlers to the GitStore (#27391) 2025-03-26 18:23:44 -04:00
remote_output.rs Fix message on push (#26588) 2025-03-12 20:18:28 +00:00
repository_selector.rs Move repository state RPC handlers to the GitStore (#27391) 2025-03-26 18:23:44 -04:00