Cache TOTP discovery and report progress (#74)

This commit is contained in:
2026-08-11 23:15:23 +02:00
parent 6edcb5fc86
commit 9759162eff
12 changed files with 1577 additions and 198 deletions

View File

@@ -612,14 +612,6 @@ impl<'a> TreeMutator<'a> {
path: repository.git_directory().to_owned(),
});
}
if let Some(path) = snapshot
.collisions()
.find(|path| path.starts_with(root.as_path()))
{
return Err(MutationError::SourceTypeCollision {
path: (*path).clone(),
});
}
Ok(())
}
@@ -760,7 +752,6 @@ pub enum MutationError {
SameObject,
DestinationInsideSource,
DestinationDirectoryMissing { directory: DirectoryPath },
SourceTypeCollision { path: std::path::PathBuf },
DestinationTypeCollision { path: std::path::PathBuf },
UnsafePolicyOverwrite { directory: DirectoryPath },
UnsupportedAuxiliary { path: std::path::PathBuf },
@@ -788,11 +779,6 @@ impl fmt::Display for MutationError {
formatter,
"trailing-slash destination directory does not exist: {directory}"
),
Self::SourceTypeCollision { path } => write!(
formatter,
"source subtree contains an entry/directory collision: {}",
path.display()
),
Self::DestinationTypeCollision { path } => write!(
formatter,
"directory destination collides with password entry: {}",