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

Method nothing_to_restore_message

atomic-cli/src/commands/restore.rs:176–182  ·  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

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

Callers

nothing calls this directly

Calls 1

is_partialMethod · 0.80

Tested by

no test coverage detected