# git: Optimistically stage hunks when staging a file, take 2 \(\#45278\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 07db88a327baa2904d6c3ed9bc17cda7ff1f0e86

Requested commit: 07db88a327baa2904d6c3ed9bc17cda7ff1f0e86

Commit: 07db88a327baa2904d6c3ed9bc17cda7ff1f0e86

Tree: 4fb3ff0c835b32428bb987fe4bdc31358c25cb2d

Author: Cole Miller

Committer: GitHub

## Message

```
git: Optimistically stage hunks when staging a file, take 2 (#45278)

Relanding #43434 with an improved approach.

Release Notes:

- N/A

---------

Co-authored-by: Ramon <55579979+van-sprundel@users.noreply.github.com>
```

## Parents

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

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