# git_store: Coalesce refresh pathspecs \(\#56406\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bc823dbbbd62918683b9aa299f1b8f1c95444733

Requested commit: bc823dbbbd62918683b9aa299f1b8f1c95444733

Commit: bc823dbbbd62918683b9aa299f1b8f1c95444733

Tree: 14b59f06d29930422534857f890c47fc412c3e1f

Author: Henrique Ferreiro

Committer: GitHub

## Message

```
git_store: Coalesce refresh pathspecs (#56406)

Coalesce repo-relative paths before refreshing git status and diff
state. The worktree scanner can report both a directory and its
descendants in the same repository bucket, which makes git receive
redundant pathspecs.

This keeps refresh commands smaller for large repositories such as
Chromium, reducing git pathspec matching work and improving status
refresh performance during large worktree updates, as the initial repo
scan.

Partially fixes #43861

Release Notes:

- Reduced git CPU usage on large repos
```

## Parents

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

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