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

Function failed_deletions_error

atomic-cli/src/commands/remove.rs:504–512  ·  view source on GitHub ↗

The sentence both removal paths end on when a deletion could not be performed: the bytes survive, so the untrack is not complete.

(count: usize)

Source from the content-addressed store, hash-verified

502/// The sentence both removal paths end on when a deletion could not be
503/// performed: the bytes survive, so the untrack is not complete.
504pub(crate) fn failed_deletions_error(count: usize) -> CliError {
505 CliError::ServiceRefusal {
506 message: format!(
507 "could not delete {} from the working copy; the bytes are still on \
508 disk, so the untrack is not complete",
509 format_count(count, "path")
510 ),
511 }
512}
513
514impl Remove {
515 /// Whether deleting `path` would destroy uncommitted edits, mirroring the

Callers 2

runMethod · 0.85
removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected