X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/f9df736a3e22f15307f9e304eb9069b06e94208f..c0c7984e7f6009b6ab18ad3da998a56a9c0f083d:/detect-renamed-lax.diff diff --git a/detect-renamed-lax.diff b/detect-renamed-lax.diff index 7be49e2..6eab0df 100644 --- a/detect-renamed-lax.diff +++ b/detect-renamed-lax.diff @@ -23,7 +23,7 @@ switches to --detect-moved blindly accepts the staged file. diff --git a/generator.c b/generator.c --- a/generator.c +++ b/generator.c -@@ -196,7 +196,9 @@ static int fattr_find(struct file_struct *f, char *fname) +@@ -200,7 +200,9 @@ static int fattr_find(struct file_struct *f, char *fname) continue; } } @@ -34,7 +34,7 @@ diff --git a/generator.c b/generator.c diff = u_strcmp(fmid->basename, f->basename); if (diff == 0) { good_match = mid; -@@ -1927,6 +1929,21 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, +@@ -1961,6 +1963,21 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, fnamecmp = partialptr; fnamecmp_type = FNAMECMP_PARTIAL_DIR; statret = 0; @@ -59,7 +59,7 @@ diff --git a/generator.c b/generator.c diff --git a/options.c b/options.c --- a/options.c +++ b/options.c -@@ -392,6 +392,8 @@ void usage(enum logcode F) +@@ -393,6 +393,8 @@ void usage(enum logcode F) rprintf(F," -T, --temp-dir=DIR create temporary files in directory DIR\n"); rprintf(F," -y, --fuzzy find similar file for basis if no dest file\n"); rprintf(F," --detect-renamed try to find renamed files to speed up the transfer\n"); @@ -68,7 +68,7 @@ diff --git a/options.c b/options.c rprintf(F," --compare-dest=DIR also compare destination files relative to DIR\n"); rprintf(F," --copy-dest=DIR ... and include copies of unchanged files\n"); rprintf(F," --link-dest=DIR hardlink to files in DIR when unchanged\n"); -@@ -572,7 +574,9 @@ static struct poptOption long_options[] = { +@@ -580,7 +582,9 @@ static struct poptOption long_options[] = { {"compare-dest", 0, POPT_ARG_STRING, 0, OPT_COMPARE_DEST, 0, 0 }, {"copy-dest", 0, POPT_ARG_STRING, 0, OPT_COPY_DEST, 0, 0 }, {"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 }, @@ -76,10 +76,10 @@ diff --git a/options.c b/options.c + {"detect-renamed", 0, POPT_ARG_VAL, &detect_renamed, 1, 0, 0 }, + {"detect-renamed-lax",0, POPT_ARG_VAL, &detect_renamed, 2, 0, 0 }, + {"detect-moved", 0, POPT_ARG_VAL, &detect_renamed, 3, 0, 0 }, - {"fuzzy", 'y', POPT_ARG_NONE, &fuzzy_basis, 0, 0, 0 }, - {"compress", 'z', POPT_ARG_NONE, 0, 'z', 0, 0 }, - {"no-compress", 0, POPT_ARG_VAL, &do_compression, 0, 0, 0 }, -@@ -1923,8 +1927,14 @@ void server_options(char **args, int *argc_p) + {"fuzzy", 'y', POPT_ARG_VAL, &fuzzy_basis, 1, 0, 0 }, + {"no-fuzzy", 0, POPT_ARG_VAL, &fuzzy_basis, 0, 0, 0 }, + {"no-y", 0, POPT_ARG_VAL, &fuzzy_basis, 0, 0, 0 }, +@@ -1949,8 +1953,14 @@ void server_options(char **args, int *argc_p) args[ac++] = "--super"; if (size_only) args[ac++] = "--size-only"; @@ -108,7 +108,7 @@ diff --git a/rsync.yo b/rsync.yo --compare-dest=DIR also compare received files relative to DIR --copy-dest=DIR ... and include copies of unchanged files --link-dest=DIR hardlink to files in DIR when unchanged -@@ -1483,6 +1485,17 @@ the bf(--partial-dir) option, that directory will be used instead. These +@@ -1490,6 +1492,17 @@ the bf(--partial-dir) option, that directory will be used instead. These potential alternate-basis files will be removed as the transfer progresses. This option conflicts with bf(--inplace) and bf(--append).