MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_user_fixable

Method is_user_fixable

atomic-repository/src/error.rs:469–485  ·  view source on GitHub ↗

Check if this error is recoverable by user action

(&self)

Source from the content-addressed store, hash-verified

467
468 /// Check if this error is recoverable by user action
469 pub fn is_user_fixable(&self) -> bool {
470 matches!(
471 self,
472 RepositoryError::UncommittedChanges
473 | RepositoryError::UnsupportedRequiredCapabilities { .. }
474 | RepositoryError::WorkingCopyMigrationRequired { .. }
475 | RepositoryError::MalformedWorkingCopyIdentity { .. }
476 | RepositoryError::MergeConflict { .. }
477 | RepositoryError::FileNotTracked { .. }
478 | RepositoryError::MissingDependency { .. }
479 | RepositoryError::TagAlreadyExists { .. }
480 | RepositoryError::InvalidTagName { .. }
481 | RepositoryError::ViewAlreadyExists { .. }
482 | RepositoryError::ChangeNotInView { .. }
483 | RepositoryError::ViewSplitHasDependents { .. }
484 )
485 }
486
487 /// Check if this error is because a path is ignored
488 pub fn is_ignored(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected