Skip to content

Commit

Permalink
Make commit module public
Browse files Browse the repository at this point in the history
I think it makes sense for us to use this in rpm-ostree directly
too at build time for example.
  • Loading branch information
cgwalters committed Sep 15, 2022
1 parent a913ab0 commit 1440264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn process_dir_recurse(root: &Dir, path: &Utf8Path, error_count: &mut i32) -> Re

/// Given a root filesystem, clean out empty directories and warn about
/// files in /var. /run, /tmp, and /var/tmp have their contents recursively cleaned.
fn prepare_ostree_commit_in(root: &Dir) -> Result<()> {
pub fn prepare_ostree_commit_in(root: &Dir) -> Result<()> {
let mut error_count = 0;
for path in FORCE_CLEAN_PATHS {
if let Some(subdir) = root.open_dir_optional(path)? {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub mod tar;
pub mod tokio_util;

pub mod chunking;
pub(crate) mod commit;
pub mod commit;
pub mod objectsource;
pub(crate) mod objgv;
#[cfg(feature = "internal-testing-api")]
Expand Down

0 comments on commit 1440264

Please sign in to comment.