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

Method nothing_to_restore_message

atomic-cli/src/commands/restore.rs:172–178  ·  view source on GitHub ↗

Message shown when there is nothing to restore. For a partial restore we must not claim the whole working copy is clean (other paths may still be dirty) — only that the named paths had nothing to restore.

(&self)

Source from the content-addressed store, hash-verified

170 /// (other paths may still be dirty) — only that the named paths had
171 /// nothing to restore.
172 fn nothing_to_restore_message(&self) -> &'static str {
173 if self.is_partial() {
174 "Nothing to restore for the specified path(s)"
175 } else {
176 "Nothing to restore - working copy is clean"
177 }
178 }
179
180 /// Status options used by restore.
181 ///

Callers

nothing calls this directly

Calls 1

is_partialMethod · 0.80

Tested by

no test coverage detected