summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-03-31 19:42:16 -0400
committerMica White <botahamec@outlook.com>2026-03-31 19:42:16 -0400
commita42030e36f79502112783aedeb79e1797bd7d968 (patch)
treed06f972d1d5b5fee499094b88fc9aa71340ba526
parent439a4bfc68b97fe198d2dfd59557ee34957dab6a (diff)
Document --all-devices
-rw-r--r--src/bin/git-restore-autosave.rs2
-rw-r--r--src/lib.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/git-restore-autosave.rs b/src/bin/git-restore-autosave.rs
index b53df76..a8fdb9a 100644
--- a/src/bin/git-restore-autosave.rs
+++ b/src/bin/git-restore-autosave.rs
@@ -70,7 +70,7 @@ fn main() -> Result<(), anyhow::Error> {
eprintln!("ERROR: There are no available autosaves for the given filters.");
if !all_users || !all_branches || !anytime {
eprintln!(
- "hint: Use --all-users, --all-branches, or --anytime to include more options."
+ "hint: Use --all-users, --all-branches, --all-devices, or --anytime to include more options."
);
}
std::process::exit(1);
diff --git a/src/lib.rs b/src/lib.rs
index 1cf0a98..c876775 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,6 +41,7 @@ pub const AUTOSAVE_REFSPEC: &str = "+refs/autosave/autosaves/*:refs/autosave/aut
pub const UNDO_RESTORE_REF: &str = "refs/autosave/undo";
pub const RESTORED_AUTOSAVE_REF: &str = "refs/autosave/restored";
+#[derive(Debug)]
pub struct Autosave {
pub repo_id: String,
pub branch_name: String,