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

Function refusal_message

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

The shared refusal sentence for both removal paths, so a caller sees one explanation whether the local body or the service handler rejected the request. Only uncommitted edits can refuse a request now: `--keep` has a real `git rm --cached` meaning and never needs guidance toward the move-aside dance.

(dirty_guarded: &[String])

Source from the content-addressed store, hash-verified

474/// real `git rm --cached` meaning and never needs guidance toward the
475/// move-aside dance.
476pub(crate) fn refusal_message(dirty_guarded: &[String]) -> String {
477 format!(
478 "recorded path(s) have uncommitted edits: {}; deleting them would discard \
479 those edits (--force to discard, or --keep to untrack while keeping the \
480 bytes)",
481 dirty_guarded.join(", ")
482 )
483}
484
485/// The paths whose bytes are still in the working copy because the deletion could
486/// not be performed, shared by both removal paths.

Calls

no outgoing calls