projects
/
dupemerge
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dupemerge: sort incumbent inodes too
[dupemerge]
/
faster-dupemerge
diff --git
a/faster-dupemerge
b/faster-dupemerge
index 5069297630ee8b5d15b930f1a1eedc29debe07b9..8df7885878b2085bb2cfc8b61e05566c239225b0 100755
(executable)
--- a/
faster-dupemerge
+++ b/
faster-dupemerge
@@
-335,7
+335,7
@@
hash_file:
my $incumbent_list = ($hash_to_inode{$digest} ||= []);
my $incumbent_matched = 0;
my $incumbent_list = ($hash_to_inode{$digest} ||= []);
my $incumbent_matched = 0;
- for my $incumbent (@$incumbent_list) {
+ for my $incumbent (
sort
@$incumbent_list) {
print STDERR "\t\tInodes $incumbent and $candidate have same hash\n" if $debug;
my $finished = 0;
print STDERR "\t\tInodes $incumbent and $candidate have same hash\n" if $debug;
my $finished = 0;