Use detached commits when archiving worktrees (#53458)

Don't move the branch when making WIP commits during archiving; instead
make detached commits via `write-tree` + `commit-tree`.

(No release notes because this isn't stable yet.)

Release Notes:

- N/A

---------

Co-authored-by: Anthony Eid <anthony@zed.dev>
754451598eRichard Feldman committed on 4/9/2026, 12:25:25 AM· committed by GitHubparent177843c
7 files changedLine totals unavailable