Whether `dot_dir` holds a repository database in either layout.
(dot_dir: &Path)
| 54 | |
| 55 | /// Whether `dot_dir` holds a repository database in either layout. |
| 56 | pub fn has_database(dot_dir: &Path) -> bool { |
| 57 | dot_dir.join(DATABASE_FILE).is_file() || dot_dir.join(LEGACY_PRISTINE_FILE).is_file() |
| 58 | } |
| 59 | |
| 60 | /// Resolve the current layout for entry points that promise not to migrate. |
| 61 | /// Ordinary opens use `ensure_database`; workspace preflight and native repair |