# Switch to attaching git statuses to their associated entries \(\#2571\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8216d26a7a450774da9d321cfa25057b630cf626

Requested commit: 8216d26a7a450774da9d321cfa25057b630cf626

Commit: 8216d26a7a450774da9d321cfa25057b630cf626

Tree: b5c7f718c7e684faefa94b4dbe3ded2f32d5f577

Author: Mikayla Maki

Committer: GitHub

## Message

```
Switch to attaching git statuses to their associated entries (#2571)

This rewrites and simplifies the git status system by attaching the git
status to each individual entry. This also improves the git testing
infrastructure to cover more cases and be more accurate to how file
events actually occur. This also fixes several other bugs in the worktree and the buffer, and stops any randomly generated actions from happening inside a `.git` folder. Hopefully, we can undo this change soon once our randomized testing is more robust.

Release Notes:

- Will require a DB migration

TODO:
- [x] Pass randomized tests
- [x] Get ready for merging
```

## Parents

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

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

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