zed/crates/project/tests/integration
Cole Miller bcfbf669bd
git: Degrade gracefully when refreshing git state (#57292)
This PR changes the git store's `compute_snapshot`, which runs to update
state that depends on the contents of `.git`, to degrade gracefully when
fetching individual pieces of state fails. For example, when fetching
the list of branches fails, instead of returning early from the function
(leaving the previous git state snapshot in place with stale state), we
continue with an empty list of branches. This prevents failures of
individual git commands from making the entire git UI get stuck
indefinitely.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- Fixed an issue where failing to fetch branches using the git CLI would
prevent other git-related state from being updated.
2026-05-25 16:15:12 +00:00
..
agent_registry_store.rs acp: Prevent registry loading from hanging indefinitely (#56108) 2026-05-12 08:52:12 +00:00
bookmark_store.rs editor: Introduce Bookmarks (#54174) 2026-04-17 13:54:43 +02:00
color_extractor.rs
context_server_store.rs Implement MCP OAuth client preregistration (#52900) 2026-05-19 17:45:07 +00:00
debugger.rs git: Add create git worktree hook to task system (#51337) 2026-04-01 16:14:48 -04:00
git_store.rs Fix remote worktree path separators (#55486) 2026-05-06 00:06:51 +00:00
image_store.rs
lsp_command.rs
lsp_store.rs Fix bookkeeping error in tracking of language server IDs when dropping single-file worktree (#57298) 2026-05-21 13:21:00 +00:00
manifest_tree.rs
project_search.rs
project_tests.rs git: Degrade gracefully when refreshing git state (#57292) 2026-05-25 16:15:12 +00:00
search.rs Add vim/emacs modeline support (#49267) 2026-03-25 03:15:51 +00:00
search_history.rs Allow search/replace to span multiple lines (#50783) 2026-03-19 11:10:14 -06:00
signature_help.rs Use SharedString::new_static for string literals (#47865) 2026-01-28 15:12:48 +00:00
task_inventory.rs task: Skip .vscode tasks when .zed/tasks.json exists (#51797) 2026-03-24 15:18:49 +00:00
trusted_worktrees.rs
yarn.rs