True while a rebase/merge is mid-flight; the watcher holds during these and fires exactly once after they clear.
(common: &Path)
| 563 | /// True while a rebase/merge is mid-flight; the watcher holds during these and |
| 564 | /// fires exactly once after they clear. |
| 565 | fn operation_in_flight(common: &Path) -> bool { |
| 566 | common.join("rebase-merge").exists() |
| 567 | || common.join("rebase-apply").exists() |
| 568 | || common.join("MERGE_HEAD").exists() |
| 569 | } |
| 570 | |
| 571 | /// Executes one coalesced debounce cycle: proactively track new worktrees, sync |
| 572 | /// affected branches / the current branch, and mark GC eligibility. |