# git: Only save dirty files during staging \(\#41047\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1ce9a85a1a374a6de7eef6137d35ae8e9568b0c0

Requested commit: 1ce9a85a1a374a6de7eef6137d35ae8e9568b0c0

Commit: 1ce9a85a1a374a6de7eef6137d35ae8e9568b0c0

Tree: ecb5a5ec07e80daf676b293f0c5fc8bde9b475a1

Author: Conrad Irwin

Committer: GitHub

## Message

```
git: Only save dirty files during staging (#41047)

Closes #40581

Release Notes:

- git: No longer save clean files when staging (to avoid triggering
unnecessary rebuilds in external file watchers like vite)
```

## Parents

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

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