Hold the common lock for an explicitly span-aware Git import. Existing databases must already require the span capability; an unreadable or unsupported database is refused before writable recovery.
(
path: P,
dry_run: bool,
)
| 183 | /// databases must already require the span capability; an unreadable or |
| 184 | /// unsupported database is refused before writable recovery. |
| 185 | pub fn try_lock_git_import_for_span<P: AsRef<Path>>( |
| 186 | path: P, |
| 187 | dry_run: bool, |
| 188 | ) -> Result<Option<GitImportPreflightGuard>, RepositoryError> { |
| 189 | Self::try_lock_git_import_preflight(path, dry_run, true) |
| 190 | } |
| 191 | |
| 192 | fn try_lock_git_import_preflight<P: AsRef<Path>>( |
| 193 | path: P, |
nothing calls this directly
no outgoing calls
no test coverage detected