Skip to content

Commit

Permalink
feat!(commands): rename backup skip_identical_parent to skip_if_uncha…
Browse files Browse the repository at this point in the history
…nged
  • Loading branch information
aawsome committed Dec 22, 2024
1 parent fe2a9bd commit 64bbda7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/core/src/commands/backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct ParentOptions {
/// Skip writing of snapshot if nothing changed w.r.t. the parent snapshot.
#[cfg_attr(feature = "clap", clap(long))]
#[cfg_attr(feature = "merge", merge(strategy = conflate::bool::overwrite_false))]
pub skip_identical_parent: bool,
pub skip_if_unchanged: bool,

/// Use no parent, read all files
#[cfg_attr(feature = "clap", clap(long, short, conflicts_with = "parent",))]
Expand Down Expand Up @@ -288,7 +288,7 @@ pub(crate) fn backup<P: ProgressBars, S: IndexedIds>(
&src,
path,
as_path.as_ref(),
opts.parent_opts.skip_identical_parent,
opts.parent_opts.skip_if_unchanged,
opts.no_scan,
&p,
)?;
Expand All @@ -300,7 +300,7 @@ pub(crate) fn backup<P: ProgressBars, S: IndexedIds>(
&src,
path,
as_path.as_ref(),
opts.parent_opts.skip_identical_parent,
opts.parent_opts.skip_if_unchanged,

Check warning on line 303 in crates/core/src/commands/backup.rs

View check run for this annotation

Codecov / codecov/patch

crates/core/src/commands/backup.rs#L303

Added line #L303 was not covered by tests
opts.no_scan,
&p,
)?
Expand All @@ -315,7 +315,7 @@ pub(crate) fn backup<P: ProgressBars, S: IndexedIds>(
&src,
&backup_path[0],
as_path.as_ref(),
opts.parent_opts.skip_identical_parent,
opts.parent_opts.skip_if_unchanged,
opts.no_scan,
&p,
)?
Expand Down

0 comments on commit 64bbda7

Please sign in to comment.