Skip to content

Commit

Permalink
also hash selected hidden and ignored files
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Mar 13, 2024
1 parent 9c8ffd1 commit 7247d5e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/task/file_hashes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ impl FileHashes {
let collect_root = root.to_owned();
WalkBuilder::new(root)
.overrides(filter)
.hidden(false)
.git_ignore(false)
.git_global(false)
.git_exclude(false)
.build_parallel()
.run(|| {
let tx = tx.clone();
Expand Down Expand Up @@ -196,10 +200,9 @@ mod test {
Some("2c806b6ebece677c")
);

let hashes =
FileHashes::from_files(target_dir.path(), vec!["src/"])
.await
.unwrap();
let hashes = FileHashes::from_files(target_dir.path(), vec!["src/"])
.await
.unwrap();

println!("{:#?}", hashes);
assert!(hashes.files.contains_key(Path::new("src/main.rs")));
Expand Down

0 comments on commit 7247d5e

Please sign in to comment.