# Always bump scan_id when refreshing an entry · gitcafe/zed

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

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

Visibility: public

Requested revision: debb694d971cfc398f5dd8d87b7c2bb9e67d682b

Requested commit: debb694d971cfc398f5dd8d87b7c2bb9e67d682b

Commit: debb694d971cfc398f5dd8d87b7c2bb9e67d682b

Tree: 24e0ac6096c128674d33738b60a432e6e7c559bd

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Always bump scan_id when refreshing an entry

The scan_id needs to be bumped even if a scan is already in progress,
so that worktree updates can detect that entries have changed. This
means that the worktree's completed_scan_id may increase by more than
one at the end of a scan.

```

## Parents

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

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