Repository navigation
Commit 5bc64f6
enhance: generate commit graph off the UI thread
`CommitGraph.Generate` for up to `MaxHistoryCommits` (20000 by default) commits used to run on the UI thread after
every history refresh (and twice when graph highlighting depends on selection), and again on every selection change
when highlighting selected commits only.
- `Repository.RefreshCommits` now builds the graph in its background task and publishes commits and graph together
via `Histories.SetCommits`, so the list and the graph always describe the same commits
- Selection-dependent regeneration runs in the background; stale results are dropped and the previous graph stays
visible until the new one is ready
- `CommitGraph.Generate` no longer sets `Commit.IsHighlightedInGraph` (an observable property bound by visible rows);
it is applied from the generated dots on the UI thread instead
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KCxH1zwDXLd9kfAAkcf6PZ1 parent 3e65576 commit 5bc64f6
3 files changed
Lines changed: 60 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 114 | | |
120 | 115 | | |
121 | 116 | | |
| |||
132 | 127 | | |
133 | 128 | | |
134 | 129 | | |
135 | | - | |
| 130 | + | |
136 | 131 | | |
137 | 132 | | |
138 | 133 | | |
| |||
254 | 249 | | |
255 | 250 | | |
256 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
257 | 278 | | |
258 | 279 | | |
259 | 280 | | |
| |||
564 | 585 | | |
565 | 586 | | |
566 | 587 | | |
567 | | - | |
| 588 | + | |
568 | 589 | | |
569 | 590 | | |
570 | | - | |
| 591 | + | |
571 | 592 | | |
572 | | - | |
573 | | - | |
574 | | - | |
| 593 | + | |
| 594 | + | |
575 | 595 | | |
576 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
577 | 601 | | |
578 | | - | |
579 | | - | |
580 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
581 | 617 | | |
582 | | - | |
| 618 | + | |
583 | 619 | | |
584 | 620 | | |
585 | 621 | | |
| |||
589 | 625 | | |
590 | 626 | | |
591 | 627 | | |
| 628 | + | |
592 | 629 | | |
593 | 630 | | |
594 | 631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
1295 | 1300 | | |
1296 | 1301 | | |
1297 | 1302 | | |
| |||
1300 | 1305 | | |
1301 | 1306 | | |
1302 | 1307 | | |
1303 | | - | |
| 1308 | + | |
1304 | 1309 | | |
1305 | 1310 | | |
1306 | 1311 | | |
| |||
0 commit comments