X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/e9d4ab8849c465e766a494765b29e26564f284d0..cc3e685d09b2095099fc396157d19172ab3ef7c4:/detect-renamed-lax.diff diff --git a/detect-renamed-lax.diff b/detect-renamed-lax.diff index 98a732a..c2296e8 100644 --- a/detect-renamed-lax.diff +++ b/detect-renamed-lax.diff @@ -20,9 +20,10 @@ switches to --detect-moved blindly accepts the staged file. -- Matt McCutchen ---- old/generator.c -+++ new/generator.c -@@ -188,7 +188,9 @@ static int fattr_find(struct file_struct +diff --git a/generator.c b/generator.c +--- a/generator.c ++++ b/generator.c +@@ -186,7 +186,9 @@ static int fattr_find(struct file_struct *f, char *fname) continue; } } @@ -33,7 +34,7 @@ switches to --detect-moved blindly accepts the staged file. diff = u_strcmp(fmid->basename, f->basename); if (diff == 0) { good_match = mid; -@@ -1831,6 +1833,21 @@ static void recv_generator(char *fname, +@@ -1864,6 +1866,21 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, fnamecmp = partialptr; fnamecmp_type = FNAMECMP_PARTIAL_DIR; statret = 0; @@ -55,9 +56,10 @@ switches to --detect-moved blindly accepts the staged file. } if (!do_xfers) ---- old/options.c -+++ new/options.c -@@ -385,6 +385,8 @@ void usage(enum logcode F) +diff --git a/options.c b/options.c +--- a/options.c ++++ b/options.c +@@ -387,6 +387,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"); @@ -66,7 +68,7 @@ switches to --detect-moved blindly accepts the staged file. 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"); -@@ -563,7 +565,9 @@ static struct poptOption long_options[] +@@ -565,7 +567,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 }, @@ -77,7 +79,7 @@ switches to --detect-moved blindly accepts the staged file. {"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 }, -@@ -1889,8 +1893,14 @@ void server_options(char **args, int *ar +@@ -1892,8 +1896,14 @@ void server_options(char **args, int *argc_p) args[ac++] = "--super"; if (size_only) args[ac++] = "--size-only"; @@ -94,9 +96,10 @@ switches to --detect-moved blindly accepts the staged file. } else { if (skip_compress) { if (asprintf(&arg, "--skip-compress=%s", skip_compress) < 0) ---- old/rsync.yo -+++ new/rsync.yo -@@ -385,6 +385,8 @@ to the detailed description below for a +diff --git a/rsync.yo b/rsync.yo +--- a/rsync.yo ++++ b/rsync.yo +@@ -386,6 +386,8 @@ to the detailed description below for a complete description. verb( -T, --temp-dir=DIR create temporary files in directory DIR -y, --fuzzy find similar file for basis if no dest file --detect-renamed try to find renamed files to speed the xfer @@ -105,7 +108,7 @@ switches to --detect-moved blindly accepts the staged file. --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 -@@ -1446,6 +1448,17 @@ the bf(--partial-dir) option, that direc +@@ -1467,6 +1469,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).