Updated the opening comments to mention how to apply the patch
[rsync-patches.git] / early-checksum.diff
index 25aa0de295dd52d48123527489cf171896a99ab5..948b1ed22efeee763bbefea3b250aa4b86b2b897 100644 (file)
@@ -8,6 +8,12 @@ to its checksum pass during its normal find-the-different-files pass.
 I have benchmarked this a little, and it appears to slow things down
 for a local copy, so the old algorithm is used for local copies.
 
+To use this patch, run these commands for a successful build:
+
+    patch -p1 <patches/early-checksum.diff
+    ./configure                                 (optional if already run)
+    make
+
 --- old/flist.c
 +++ new/flist.c
 @@ -31,6 +31,7 @@ extern int am_daemon;
@@ -73,7 +79,7 @@ for a local copy, so the old algorithm is used for local copies.
                                continue;
                        best_match = j;
                        match_level = 2;
-@@ -1212,7 +1216,7 @@ static void recv_generator(char *fname, 
+@@ -1215,7 +1219,7 @@ static void recv_generator(char *fname, 
                ;
        else if (fnamecmp_type == FNAMECMP_FUZZY)
                ;
@@ -84,7 +90,7 @@ for a local copy, so the old algorithm is used for local copies.
                        handle_partial_dir(partialptr, PDIR_DELETE);
 --- old/hlink.c
 +++ new/hlink.c
-@@ -222,7 +222,7 @@ int hard_link_check(struct file_struct *
+@@ -224,7 +224,7 @@ int hard_link_check(struct file_struct *
                                                }
                                                break;
                                        }