(target: &str)
| 1430 | } |
| 1431 | |
| 1432 | fn switch(target: &str) -> CliResult<()> { |
| 1433 | let root = find_repository_root()?; |
| 1434 | // The transaction brackets the FileWatcher with atomic-bridge enter/leave, |
| 1435 | // including failure cleanup; shim-originated writes inside the span are |
| 1436 | // self-suppressed so they never feed back into reconciliation. |
| 1437 | bracket_bridge_transaction( |
| 1438 | watcher_config(&root), |
| 1439 | &format!("shim-switch:{target}"), |
| 1440 | || switch_transaction(&root, target), |
| 1441 | ) |
| 1442 | } |
| 1443 | |
| 1444 | #[tracing::instrument(name = "switch", skip_all, fields(view = target))] |
| 1445 | fn switch_transaction(root: &Path, target: &str) -> CliResult<()> { |
no test coverage detected