MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / bracket_pass

Function bracket_pass

atomic-cli/src/commands/git/watch.rs:414–429  ·  view source on GitHub ↗

Run one metadata-only reconcile pass inside the balanced atomic-bridge watcher bracket.

(root: &Path, sink: &(dyn Fn(WatchNoticeKind, &str) + '_))

Source from the content-addressed store, hash-verified

412/// Run one metadata-only reconcile pass inside the balanced atomic-bridge
413/// watcher bracket.
414fn bracket_pass(root: &Path, sink: &(dyn Fn(WatchNoticeKind, &str) + '_)) -> CliResult<()> {
415 let sink_ref: &WatchNoticeSink<'_> = sink;
416 let operation = format!("shim-watch:{}", std::process::id());
417 let root_owned = root.to_path_buf();
418 atomic_agent::watcher::bridge::bracket_bridge_transaction(
419 atomic_agent::watcher::bridge::watcher_config(root),
420 &operation,
421 move || {
422 reconcile_transaction_budgeted(
423 &root_owned,
424 ReconcileEffectBudget::MetadataOnly,
425 Some(sink_ref),
426 )
427 },
428 )
429}
430
431/// Write one pending notice for every active managed session (RFC §11.2
432/// rule 6: "pushed into the session as a notice before the agent's next

Callers 1

reactive_passFunction · 0.85

Calls 3

watcher_configFunction · 0.85

Tested by

no test coverage detected