Check if this error is recoverable by user action
(&self)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected