ZIm/crates/collab/src/db
Cole Miller a41d72ee81
Represent git statuses more faithfully (#23082)
First, parse the output of `git status --porcelain=v1` into a
representation that can handle the full "grammar" and doesn't lose
information.

Second, as part of pushing this throughout the codebase, expand the use
of the existing `GitSummary` type to all the places where status
propagation is in play (i.e., anywhere we're dealing with a mix of files
and directories), and get rid of the previous `GitSummary ->
GitFileStatus` conversion.

- [x] Synchronize new representation over collab
  - [x] Update zed.proto
  - [x] Update DB models
- [x] Update `GitSummary` and summarization for the new `FileStatus`
- [x] Fix all tests
  - [x] worktree
  - [x] collab
- [x] Clean up `FILE_*` constants
- [x] New collab tests to exercise syncing of complex statuses
- [x] Run it locally and make sure it looks good

Release Notes:

- N/A

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
Co-authored-by: Conrad <conrad@zed.dev>
2025-01-16 00:01:38 +00:00
..
queries Represent git statuses more faithfully (#23082) 2025-01-16 00:01:38 +00:00
tables Represent git statuses more faithfully (#23082) 2025-01-16 00:01:38 +00:00
tests collab: Prevent users from creating a new subscription when they have overdue subscriptions (#22870) 2025-01-08 22:50:48 +00:00
ids.rs Remove dev servers (#19638) 2024-10-24 12:14:03 -06:00
queries.rs Remove hosted projects (#19754) 2024-10-27 19:44:21 -07:00
tables.rs Remove hosted projects (#19754) 2024-10-27 19:44:21 -07:00
tests.rs assistant: Require user to accept TOS for cloud provider (#16111) 2024-08-12 17:43:35 +02:00