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>)
| 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 |
nothing calls this directly
no test coverage detected