From 519576af8774987194041d2b3da293fa98c6f6cd Mon Sep 17 00:00:00 2001 From: Seng Leung Date: Tue, 28 Jul 2026 23:27:09 +0100 Subject: [PATCH] fix: use backup config for local diffs --- src/commands/backup.rs | 2 +- src/commands/diff.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/backup.rs b/src/commands/backup.rs index eb91da776..d08498976 100644 --- a/src/commands/backup.rs +++ b/src/commands/backup.rs @@ -106,7 +106,7 @@ pub struct BackupCmd { /// Node save options #[clap(flatten, next_help_heading = "Node modification options")] #[serde(flatten)] - ignore_save_opts: LocalSourceSaveOptions, + pub ignore_save_opts: LocalSourceSaveOptions, /// Parent processing options #[clap(flatten, next_help_heading = "Options for parent processing")] diff --git a/src/commands/diff.rs b/src/commands/diff.rs index 4e8cbb38b..76464d60e 100644 --- a/src/commands/diff.rs +++ b/src/commands/diff.rs @@ -16,7 +16,7 @@ use std::{ use anyhow::{Context, Result, bail}; use rustic_core::{ - Excludes, LocalDestination, LocalSource, LocalSourceFilterOptions, LocalSourceSaveOptions, + Excludes, LocalDestination, LocalSource, LocalSourceFilterOptions, LsOptions, ProgressBars, ProgressType, ReadSource, ReadSourceEntry, RusticResult, repofile::{Node, NodeType}, }; @@ -178,7 +178,7 @@ impl DiffCmd { .with_context(|| format!("Error accessing {path2:?}"))? .is_dir(); let src = LocalSource::new( - LocalSourceSaveOptions::default(), + config.backup.ignore_save_opts.clone(), &self.excludes, &self.ignore_opts, &[&path2],