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

Method for_repository

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

Journal for `repository`, recording its working-copy ID when one is resolved. This constructor is for automatic library-level paths: it honors the repository's shim consent, so an un-opted repository never writes telemetry. The journal file is created on first emission.

(repository: &Repository)

Source from the content-addressed store, hash-verified

703 /// never writes telemetry. The journal file is created on first
704 /// emission.
705 pub fn for_repository(repository: &Repository) -> Self {
706 let working_copy = repository
707 .require_working_copy_id()
708 .ok()
709 .and_then(|id| UlidId::new(&id.to_string()));
710 Self::for_dot_dir(repository.dot_dir(), working_copy)
711 }
712
713 /// Consent-gated journal for a dot directory without a repository
714 /// handle. Honors the same `[git.shim] enabled` consent gate as

Callers

nothing calls this directly

Calls 3

okMethod · 0.45
dot_dirMethod · 0.45

Tested by

no test coverage detected