Check if a path is inside an Atomic repository.
(path: P)
| 1115 | |
| 1116 | /// Check if a path is inside an Atomic repository. |
| 1117 | pub fn is_repository<P: AsRef<Path>>(path: P) -> bool { |
| 1118 | Self::find_root(path.as_ref()).is_ok() |
| 1119 | } |
| 1120 | |
| 1121 | /// Resolve the **canonical** `.atomic` directory for a working path |
| 1122 | /// *without* opening the database. |