Skip to content

Commit dc635c5

Browse files
etc-merge: Implement merge
Merge added, modified, removed files from the current etc into the new etc directory, following the rules 1. If file is removed from current_etc, it will be removed from new_etc 2. If file is modified in current_etc, it will be copied to the new_etc overwriting any existing files 3. If a file is added in current_etc, then the above modification rule applies Modification includes change in content/permissions. Changed in Xattrs and/or ownership is not handled yet. Signed-off-by: Johan-Liebert1 <[email protected]>
1 parent 87e4a1c commit dc635c5

File tree

3 files changed

+488
-41
lines changed

3 files changed

+488
-41
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/etc-merge/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ openssl = { workspace = true }
1111
hex = { workspace = true }
1212
tracing = { workspace = true }
1313
composefs = { workspace = true }
14+
fn-error-context = { workspace = true }
1415

1516
[lints]
1617
workspace = true

0 commit comments

Comments
 (0)