Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6012eaa
)
Set a maximum distance-measure that find_fuzzy() will accept.
author
Wayne Davison
<wayned@samba.org>
Thu, 17 Mar 2005 08:59:48 +0000
(08:59 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 17 Mar 2005 08:59:48 +0000
(08:59 +0000)
generator.c
patch
|
blob
|
blame
|
history
diff --git
a/generator.c
b/generator.c
index
d4680d3
..
6d239ba
100644
(file)
--- a/
generator.c
+++ b/
generator.c
@@
-507,7
+507,7
@@
static int find_fuzzy(struct file_struct *file, struct file_list *dirlist)
{
int fname_len, fname_suf_len;
const char *fname_suf, *fname = file->basename;
- uint32 lowest_dist =
0x7FFFFFFF;
+ uint32 lowest_dist =
25 << 16; /* ignore a distance greater than 25 */
int j, lowest_j = -1;
fname_len = strlen(fname);