Commit ccc558c
committed
etc-merge: Refactor and fix dir perms while merging
While merging, existing directory in new_etc was being recursively
deleted which is not correct as any new files might also be deleted.
Instead, we simply create a directory if it doesn't exists, or if it
does exists, we update its metadata accordingly.
Add some test cases for the above.
Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
cli: Add internal opt for printing etc-diff
Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
etc-merge: Add license to Cargo.toml
Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
etc-merge: More refactoring
Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>1 parent dff69a9 commit ccc558c
5 files changed
Lines changed: 228 additions & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments