# git: Avoid removing project excerpts for dirty buffers \(\#44312\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 86aa9abc9036fa94cf2a98aefbefb1d7c71ad699

Requested commit: 86aa9abc9036fa94cf2a98aefbefb1d7c71ad699

Commit: 86aa9abc9036fa94cf2a98aefbefb1d7c71ad699

Tree: 066bb4f7c5763d0f2b4d7b9c81e07036d803015e

Author: Cole Miller

Committer: GitHub

## Message

```
git: Avoid removing project excerpts for dirty buffers (#44312)

Imitating the approach of #41829. Prevents e.g. reverting a hunk and
having that excerpt yanked out from under the cursor.

Release Notes:

- git: Improved stability of excerpts when editing in the project diff.
```

## Parents

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

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