# git_ui: Fix visual optimistic staging bug for tree view \(\#48078\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9101f0ffc96a95b11f5d76e42b6ea73710f067f1

Requested commit: 9101f0ffc96a95b11f5d76e42b6ea73710f067f1

Commit: 9101f0ffc96a95b11f5d76e42b6ea73710f067f1

Tree: 9bbbab8095cd469d62883182470102bbe6f8052b

Author: Remco Smits

Committer: GitHub

## Message

```
git_ui: Fix visual optimistic staging bug for tree view (#48078)

Before this PR we would not show the placeholder for the parent folders
of a file entry inside the git tree view. This PR fixes that so it's
visually correct.

**Before**


https://github.com/user-attachments/assets/3d0988de-f43b-4b2d-8f90-c531316ab290

**After**


https://github.com/user-attachments/assets/e28f9eba-e301-4f9a-8647-7f1f2f12f87d

Release Notes:

- Git UI: Fix optimistic placeholder for folders in the three view
```

## Parents

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

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