X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/03019e41fc3299020c8acdda06cf57a1e2c57a25..cdcd21373a3358b21132ad227fe21a8543e45090:/date-only.diff diff --git a/date-only.diff b/date-only.diff index d63b154..b43ac3a 100644 --- a/date-only.diff +++ b/date-only.diff @@ -16,7 +16,7 @@ To use this patch, run these commands for a successful build: --- old/generator.c +++ new/generator.c -@@ -60,6 +60,7 @@ extern int append_mode; +@@ -61,6 +61,7 @@ extern int append_mode; extern int make_backups; extern int csum_length; extern int ignore_times; @@ -24,13 +24,14 @@ To use this patch, run these commands for a successful build: extern int size_only; extern OFF_T max_size; extern OFF_T min_size; -@@ -378,6 +379,8 @@ void itemize(struct file_struct *file, i +@@ -571,6 +572,9 @@ void itemize(struct file_struct *file, i /* Perform our quick-check heuristic for determining if a file is unchanged. */ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) { + if (date_only) + return cmp_time(st->st_mtime, file->modtime) == 0; - if (st->st_size != file->length) ++ + if (st->st_size != F_LENGTH(file)) return 0; --- old/options.c @@ -43,7 +44,7 @@ To use this patch, run these commands for a successful build: int daemon_bwlimit = 0; int bwlimit = 0; int fuzzy_basis = 0; -@@ -343,6 +344,7 @@ void usage(enum logcode F) +@@ -340,6 +341,7 @@ void usage(enum logcode F) rprintf(F," --timeout=TIME set I/O timeout in seconds\n"); rprintf(F," -I, --ignore-times don't skip files that match in size and mod-time\n"); rprintf(F," --size-only skip files that match in size\n"); @@ -51,7 +52,7 @@ To use this patch, run these commands for a successful build: rprintf(F," --modify-window=NUM compare mod-times with reduced accuracy\n"); 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"); -@@ -463,6 +465,7 @@ static struct poptOption long_options[] +@@ -460,6 +462,7 @@ static struct poptOption long_options[] {"chmod", 0, POPT_ARG_STRING, 0, OPT_CHMOD, 0, 0 }, {"ignore-times", 'I', POPT_ARG_NONE, &ignore_times, 0, 0, 0 }, {"size-only", 0, POPT_ARG_NONE, &size_only, 0, 0, 0 }, @@ -59,7 +60,7 @@ To use this patch, run these commands for a successful build: {"one-file-system", 'x', POPT_ARG_NONE, 0, 'x', 0, 0 }, {"update", 'u', POPT_ARG_NONE, &update_only, 0, 0, 0 }, {"existing", 0, POPT_ARG_NONE, &ignore_non_existing, 0, 0, 0 }, -@@ -1676,6 +1679,9 @@ void server_options(char **args,int *arg +@@ -1692,6 +1695,9 @@ void server_options(char **args,int *arg args[ac++] = "--size-only"; } @@ -71,7 +72,7 @@ To use this patch, run these commands for a successful build: goto oom; --- old/rsync.yo +++ new/rsync.yo -@@ -360,6 +360,7 @@ to the detailed description below for a +@@ -361,6 +361,7 @@ to the detailed description below for a --timeout=TIME set I/O timeout in seconds -I, --ignore-times don't skip files that match size and time --size-only skip files that match in size @@ -79,7 +80,7 @@ To use this patch, run these commands for a successful build: --modify-window=NUM compare mod-times with reduced accuracy -T, --temp-dir=DIR create temporary files in directory DIR -y, --fuzzy find similar file for basis if no dest file -@@ -477,6 +478,12 @@ regardless of timestamp. This is useful +@@ -478,6 +479,12 @@ regardless of timestamp. This is useful after using another mirroring system which may not preserve timestamps exactly.