# git_graph: Fix empty search case \(\#52845\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6837c8aa6bc314cd02e44f71e9377f3eada7120f

Requested commit: 6837c8aa6bc314cd02e44f71e9377f3eada7120f

Commit: 6837c8aa6bc314cd02e44f71e9377f3eada7120f

Tree: 50d930e4ed0257a669d9cdd33f84bba93f33664d

Author: Anthony Eid

Committer: GitHub

## Message

```
git_graph: Fix empty search case (#52845)

This fixes a bug where search would match all commits if there was an empty query instead of setting the query to None

Self-Review Checklist:

- [ ] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #ISSUE

Release Notes:

- N/A or Added/Fixed/Improved ...

---------

Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

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

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