Skip to content

Commit ea2b542

Browse files
committed
shredder: do not hash single-file groups unless --hash-uniques
Fixes #614 (albeit in a hacky way).
1 parent 31f6f66 commit ea2b542

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/shredder.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,10 @@ static void rm_shred_group_update_status(RmShredGroup *group) {
836836
// hashes complete
837837
return;
838838
}
839+
if (!(group->num_files >= 2) && !group->session->cfg->hash_uniques) {
840+
// no hashing required (yet)
841+
return;
842+
}
839843
if(!rm_shred_group_qualifies(group) && !group->session->cfg->hash_uniques &&
840844
!group->session->cfg->hash_unmatched) {
841845
// no hashing requred (yet)

0 commit comments

Comments
 (0)