# project_panel: Add Git status indicators \(\#50216\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9973a349a4b758912919bccde7ac652feefbfa45

Requested commit: 9973a349a4b758912919bccde7ac652feefbfa45

Commit: 9973a349a4b758912919bccde7ac652feefbfa45

Tree: c76b9bf3d737cdc782aba6e4993e9bd3552ada54

Author: Davide Scaccia

Committer: GitHub

## Message

```
project_panel: Add Git status indicators (#50216)

This PR adds Git status badges next to file names in the Project Panel,
following my older PR #49802
These are enabled by having "git_status" true.

Screenshot
<img width="343" height="320" alt="image"
src="https://github.com/user-attachments/assets/b2c208bf-5027-4947-a5ee-eeb74fadb02b"
/>

I'd love to hear feedback about any of this :)
Especially feedback on these:

- File name colour is determined only by Git status, the diagnostic
badges remain separate. Should diagnostics also affect the filename
colour?
- (Unstaged) Modified files and staged modifications share the same
colour, in vscode staged modifications use a brownish colour by default
which I could not find the colours. I think differentiating them is
definetely something to add.

Release Notes

- Added git status indicators in Project Panel. It can be enabled by
setting `git_status_indicator` to `true` in `project_panel` settings.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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