Latest patches.
[rsync.git/patches.git] / date-only.diff
index bff6b3d147cb0e35a5dc61d8c469634c5c253ca7..1a080a17c5614a779b8b2b0779eb647c8de49743 100644 (file)
@@ -14,7 +14,7 @@ To use this patch, run these commands for a successful build:
     ./configure                                 (optional if already run)
     make
 
-based-on: d1a1fec1340254926e17f5d83f848f7574286a33
+based-on: c4a3f55be35726d0a033996dc37b0fb248b45cb5
 diff --git a/generator.c b/generator.c
 --- a/generator.c
 +++ b/generator.c
@@ -31,7 +31,7 @@ diff --git a/generator.c b/generator.c
  int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st)
  {
 +      if (date_only)
-+              return cmp_time(st->st_mtime, file->modtime) == 0;
++              return time_diff(st, file) == 0;
 +
        if (st->st_size != F_LENGTH(file))
                return 0;
@@ -63,7 +63,7 @@ diff --git a/options.c b/options.c
    {"one-file-system", 'x', POPT_ARG_NONE,   0, 'x', 0, 0 },
    {"no-one-file-system",0, POPT_ARG_VAL,    &one_file_system, 0, 0, 0 },
    {"no-x",             0,  POPT_ARG_VAL,    &one_file_system, 0, 0, 0 },
-@@ -2659,6 +2662,9 @@ void server_options(char **args, int *argc_p)
+@@ -2683,6 +2686,9 @@ void server_options(char **args, int *argc_p)
        else if (missing_args == 1 && !am_sender)
                args[ac++] = "--ignore-missing-args";
  
@@ -84,7 +84,7 @@ diff --git a/rsync.yo b/rsync.yo
   -@, --modify-window=NUM     set the accuracy for mod-time comparisons
   -T, --temp-dir=DIR          create temporary files in directory DIR
   -y, --fuzzy                 find similar file for basis if no dest file
-@@ -606,6 +607,12 @@ time to just looking for files that have changed in size.  This is useful
+@@ -607,6 +608,12 @@ time to just looking for files that have changed in size.  This is useful
  when starting to use rsync after using another mirroring system which may
  not preserve timestamps exactly.