Resolve the canonical repository database path without opening redb. Sandboxes resolve to the owning repository's `.atomic/atomic.redb`, never to a sandbox-local database. A legacy repository has not been merged yet until [`ensure_database`] runs.
(path: P)
| 1143 | /// never to a sandbox-local database. A legacy repository has not been |
| 1144 | /// merged yet until [`ensure_database`] runs. |
| 1145 | pub fn canonical_database_path<P: AsRef<Path>>(path: P) -> Result<PathBuf, RepositoryError> { |
| 1146 | Ok(Self::canonical_dot_dir(path)?.join(DATABASE_FILE)) |
| 1147 | } |
| 1148 | |
| 1149 | /// Get the repository root path. |
| 1150 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected