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