# Use detached commits when archiving worktrees \(\#53458\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/754451598ec98b77bb5b02b35cd51efe60e2f82c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 754451598ec98b77bb5b02b35cd51efe60e2f82c

Requested commit: 754451598ec98b77bb5b02b35cd51efe60e2f82c

Commit: 754451598ec98b77bb5b02b35cd51efe60e2f82c

Tree: e32f440dfa83c3e8586d253690cb61dd8452cca4

Author: Richard Feldman

Committer: GitHub

## Message

```
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>
```

## Parents

- [177843c3df34eae8cf7f64c7342798715087a980](https://git.cafe/gitcafe/zed/commit/177843c3df34eae8cf7f64c7342798715087a980?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/754451598ec98b77bb5b02b35cd51efe60e2f82c?format=markdown)
