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

Method for_dot_dir

atomic-repository/src/repository/observability.rs:716–725  ·  view source on GitHub ↗

Consent-gated journal for a dot directory without a repository handle. Honors the same `[git.shim] enabled` consent gate as [`Self::for_repository`].

(dot_dir: &Path, working_copy: Option<UlidId>)

Source from the content-addressed store, hash-verified

714 /// handle. Honors the same `[git.shim] enabled` consent gate as
715 /// [`Self::for_repository`].
716 pub fn for_dot_dir(dot_dir: &Path, working_copy: Option<UlidId>) -> Self {
717 Self {
718 path: dot_dir.join(BRIDGE_EVENT_JOURNAL_RELATIVE_PATH),
719 dot_dir: dot_dir.to_path_buf(),
720 working_copy,
721 consented: std::sync::atomic::AtomicBool::new(shim_opted_in(dot_dir)),
722 config_mtime: std::sync::atomic::AtomicU64::new(config_mtime_nanos(dot_dir)),
723 live_consent: true,
724 }
725 }
726
727 /// Journal rooted at an Atomic dot directory, without the consent
728 /// gate. Use only from explicit shim command boundaries (the

Callers

nothing calls this directly

Calls 2

shim_opted_inFunction · 0.85
config_mtime_nanosFunction · 0.85

Tested by

no test coverage detected