Richard Feldman and Anthony Eid
f2ef43429f
Add ArchivedGitWorktree data model and DB operations ( #53214 )
...
Add the persistence layer for tracking archived git worktrees:
- `ArchivedGitWorktree` struct with `staged_commit_hash` and
`unstaged_commit_hash` fields to precisely identify WIP commits
- DB migrations for `archived_git_worktrees` and
`thread_archived_worktrees` (join table) tables
- CRUD operations: create, link to thread, query by thread, delete, mark
as restored
- `Column` impl for deserializing `ArchivedGitWorktree` from DB rows
- Tests for two-SHA round-trip, create/retrieve, delete, restore flag,
multi-thread linking, and multiple worktrees per thread
Part 2 of 3 in the persist-worktree stack. Stacked on #53213 . This is
pure data model — nothing is wired up yet.
Release Notes:
- N/A
---------
Co-authored-by: Anthony Eid <anthony@zed.dev >
2026-04-07 20:18:03 +00:00
..
2026-04-06 22:08:49 +00:00
2026-04-01 09:05:03 +00:00
2026-04-01 17:25:32 +00:00
2026-03-09 13:22:12 +01:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:12:02 -04:00
2026-04-07 20:18:03 +00:00
2026-03-11 23:21:57 +00:00
2026-04-07 12:28:19 -03:00
2026-02-18 12:00:02 +01:00
2026-03-24 00:58:09 +01:00
2026-03-18 21:31:20 -04:00
2026-03-03 17:47:35 +01:00
2026-03-18 09:53:06 +01:00
2026-04-07 11:59:12 +02:00
2026-03-13 08:00:22 +00:00
2026-04-01 17:25:32 +00:00
2026-04-01 17:25:32 +00:00
2026-03-30 13:07:13 +00:00
2026-04-02 10:20:49 -07:00
2026-04-07 12:28:19 -03:00
2026-02-25 08:12:04 +01:00
2026-04-07 12:28:19 -03:00
2026-03-24 16:59:55 -04:00
2026-04-07 12:28:19 -03:00
2026-04-02 17:06:57 -03:00
2026-04-07 05:21:47 -04:00
2026-04-07 12:12:02 -04:00
2026-03-27 18:06:56 -07:00
2026-03-31 15:09:16 -04:00
2026-03-27 14:56:46 -07:00
2026-04-05 23:05:35 +01:00
2026-04-05 23:05:35 +01:00
2026-03-24 13:22:21 +00:00
2026-03-27 14:56:46 -07:00
2026-03-11 03:08:39 +00:00
2026-04-02 17:06:57 -03:00
2026-04-01 17:25:32 +00:00
2026-03-30 09:06:59 +00:00
2026-03-16 16:29:24 +00:00
2026-03-18 12:05:57 -07:00
2026-01-14 07:19:13 +00:00
2026-04-06 16:42:20 +00:00
2026-04-01 17:25:32 +00:00
2025-12-18 12:47:34 +00:00
2026-04-07 10:58:35 -07:00
2026-04-01 22:52:19 +00:00
2026-03-31 17:55:05 +02:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:28:19 -03:00
2026-03-25 23:41:09 +00:00
2026-02-04 17:54:11 -05:00
2026-04-01 17:25:32 +00:00
2026-04-07 19:17:49 +03:00
2026-04-01 17:25:32 +00:00
2026-04-07 12:28:19 -03:00
2026-02-28 21:47:30 -05:00
2026-04-02 17:06:57 -03:00
2026-02-19 18:57:49 +01:00
2026-02-28 22:42:19 -05:00
2026-04-03 19:22:17 +05:30
2026-03-24 19:11:30 -04:00
2026-03-27 14:41:25 +01:00
2026-03-31 18:14:18 -07:00
2026-03-31 17:55:05 +02:00
2026-04-02 15:26:37 +00:00
2026-03-09 13:22:12 +01:00
2026-04-07 12:05:02 +02:00
2026-04-07 16:18:15 +00:00
2026-02-19 18:57:49 +01:00
2026-04-03 11:00:13 +00:00
2026-04-07 12:05:02 +02:00
2026-04-07 16:18:15 +00:00
2026-04-07 16:18:15 +00:00
2026-01-31 21:56:34 +00:00
2026-04-07 12:28:19 -03:00
2026-04-01 17:25:32 +00:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:28:19 -03:00
2026-04-01 02:50:01 +00:00
2026-04-04 16:10:22 -04:00
2026-03-06 14:03:45 +00:00
2026-03-24 11:05:12 +00:00
2026-04-07 12:28:19 -03:00
2026-01-07 12:48:24 -08:00
2026-02-26 18:36:50 +01:00
2026-03-31 13:16:53 +00:00
2026-04-03 22:31:03 +03:00
2026-04-04 16:10:22 -04:00
2026-04-02 16:26:08 +00:00
2026-04-07 11:19:21 +05:30
2026-04-07 12:44:19 -03:00
2026-03-28 18:41:33 -04:00
2026-04-01 17:25:32 +00:00
2026-02-12 00:28:17 +00:00
2026-03-12 15:34:09 -07:00
2026-03-07 11:05:10 +01:00
2026-04-01 17:25:32 +00:00
2026-04-07 14:15:33 +00:00
2026-04-07 12:28:19 -03:00
2026-04-02 12:52:42 +00:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:28:19 -03:00
2026-03-25 12:07:34 -06:00
2026-04-01 17:25:32 +00:00
2026-04-06 16:42:20 +00:00
2026-04-02 12:52:42 +00:00
2026-04-01 17:25:32 +00:00
2026-02-03 15:51:40 -05:00
2026-03-24 00:58:09 +01:00
2026-03-06 16:49:55 +00:00
2026-03-17 08:36:37 +01:00
2026-04-07 14:30:22 +05:30
2026-04-06 16:42:20 +00:00
2025-12-30 07:49:01 -03:00
2026-04-02 00:44:53 +00:00
2026-03-27 14:41:25 +01:00
2026-03-05 08:59:05 +00:00
2026-04-07 14:15:33 +00:00
2026-02-17 10:41:10 +00:00
2026-02-20 13:36:04 +00:00
2026-02-13 20:16:11 +01:00
2026-03-09 13:22:12 +01:00
2026-03-17 10:39:54 +00:00
2026-03-27 14:41:25 +01:00
2026-04-07 12:28:19 -03:00
2026-03-27 14:41:25 +01:00
2026-04-07 12:28:19 -03:00
2026-03-23 12:48:49 +00:00
2026-04-01 17:25:32 +00:00
2026-04-07 14:15:33 +00:00
2026-03-13 14:13:12 -03:00
2026-03-31 17:55:05 +02:00
2026-04-07 12:44:19 -03:00
2026-03-31 02:46:07 +00:00
2026-03-31 12:48:22 +03:00
2026-04-07 20:18:03 +00:00
2026-02-19 18:57:49 +01:00
2026-04-07 11:25:55 +00:00
2026-04-06 18:18:59 +00:00
2026-03-26 13:48:18 +00:00
2026-04-07 05:21:47 -04:00
2026-04-07 12:44:19 -03:00
2025-12-15 13:30:13 +00:00
2026-04-03 18:55:40 -04:00
2026-03-27 14:41:25 +01:00
2026-04-03 04:16:35 +00:00
2026-04-06 22:42:50 -07:00
2026-03-09 13:22:12 +01:00
2026-03-21 14:05:30 +01:00
2026-03-30 09:06:59 +00:00
2026-04-06 17:19:29 -03:00
2026-03-07 04:11:45 +00:00
2026-03-27 14:41:25 +01:00
2026-04-07 19:17:49 +03:00
2026-03-18 12:05:57 -07:00
2026-04-07 12:12:02 -04:00
2026-04-07 12:12:02 -04:00
2026-03-25 12:07:34 -06:00
2026-04-02 00:44:53 +00:00
2026-04-07 09:14:47 -07:00
2026-03-16 23:49:34 -04:00
2026-04-07 18:42:34 +00:00
2026-01-26 13:49:26 +00:00
2026-02-12 00:28:17 +00:00
2026-03-10 20:25:12 +00:00
2026-03-27 14:41:25 +01:00
2026-03-21 14:05:30 +01:00
2026-03-29 14:43:05 +00:00
2026-03-31 08:06:37 -06:00
2026-03-31 21:23:42 -03:00
2026-04-02 13:09:29 +00:00
2026-04-07 06:14:00 +00:00
2026-01-28 16:36:44 -08:00
2026-03-30 07:56:00 -07:00
2026-04-07 02:46:30 +00:00
2026-04-01 17:25:32 +00:00
2026-04-02 13:24:15 +00:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-27 14:41:25 +01:00
2026-03-27 15:31:49 +00:00
2026-02-28 21:47:30 -05:00
2026-04-06 21:42:04 +00:00
2026-04-01 17:25:32 +00:00
2026-04-07 10:19:45 -07:00
2026-03-13 19:37:18 -03:00
2026-03-27 15:31:49 +00:00
2026-03-27 14:41:25 +01:00
2026-04-05 11:12:02 -07:00
2026-01-25 21:35:32 +01:00
2026-04-07 12:12:02 -04:00
2026-03-19 12:53:26 -04:00
2026-03-09 13:22:12 +01:00
2026-04-07 12:28:19 -03:00
2026-03-27 14:41:25 +01:00
2026-04-07 18:42:34 +00:00
2026-04-03 04:16:35 +00:00
2026-02-19 18:57:49 +01:00
2026-04-07 12:28:19 -03:00
2026-04-07 12:12:02 -04:00
2026-04-07 18:42:34 +00:00
2026-04-02 17:06:57 -03:00
2026-04-02 17:06:57 -03:00
2026-04-06 16:29:37 -04:00
2026-03-03 08:37:58 +00:00
2026-02-11 11:24:04 +00:00
2025-12-05 17:23:06 +00:00