# Show git items in the panel only when in a git repository \(\#24865\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 17323ed7b22dfdad331b796de539d5d8bfd962e2

Requested commit: 17323ed7b22dfdad331b796de539d5d8bfd962e2

Commit: 17323ed7b22dfdad331b796de539d5d8bfd962e2

Tree: 163ccf7b67c32f3022e231d67a620750670fb0c9

Author: Angelk90

Committer: GitHub

## Message

```
Show git items in the panel only when in a git repository (#24865)

| Before | After | After2 |
| - | - | - |
| <img width="368" alt="Screenshot 2025-02-14 alle 13 45 41"
src="https://github.com/user-attachments/assets/9ed6f233-c7e3-45b4-b2cd-605b6f785cbe"
/> | <img width="367" alt="Screenshot 2025-02-14 alle 14 25 24"
src="https://github.com/user-attachments/assets/808da265-dd1d-4679-9b62-a4def459fc8f"
/> | <img width="371" alt="Screenshot 2025-02-14 alle 14 25 38"
src="https://github.com/user-attachments/assets/09d0e27e-1e58-43b4-9a35-eb14c0d14961"
/> |

Release Notes:

- If it is not a git repository it shows nothing.
- Fix stage and unstage title in context_menu
```

## Parents

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

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