Repository navigation
Commit ef38ae8
committed
Debounce git-directory refresh notifications (#563)
FSEvents' coalescing window doesn't reliably batch every file written
by a single git operation (e.g. `git switch -c` writes a new ref file
and rewrites HEAD) into one callback, so PBGitHistoryController could
receive multiple PBGitRepositoryEventNotifications in quick succession
and call refresh: for each one, triggering redundant, overlapping
history reloads.
Coalesce bursts of git-directory notifications within a short window
into a single refresh: call, and cancel any pending debounced refresh
when the view closes.1 parent d9df533 commit ef38ae8
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
| 605 | + | |
602 | 606 | | |
603 | 607 | | |
604 | 608 | | |
| |||
0 commit comments