feat(cli): --fuzzy honors an explicit --no-incremental
The --fuzzy implication previously forced use_incremental back on even when the user passed --no-incremental, while --no-delta and -W were honored. Track a --no-incremental latch (like the no_delta latch): with it set, do not force the handshake on, and because delta needs the handshake, also suppress the delta implication so no invalid '--delta requires --incremental' config results. A --fuzzy --no-incremental run is therefore a plain default-mode transfer (fuzzy inert), consistent with -W/--no-delta. Documented in the usage text (this deliberately differs from the basis-dir options, which still force incremental unconditionally).
This commit is contained in:
+2
-1
@@ -84,7 +84,8 @@ void print_usage(void) {
|
||||
printf(" -y, --fuzzy Use a similar-named file already in the destination\n");
|
||||
printf(" directory as the delta basis when the destination has no\n");
|
||||
printf(" usable file at the exact path (saves bandwidth; implies\n");
|
||||
printf(" --incremental and --delta; inert with --whole-file)\n");
|
||||
printf(" --incremental and --delta; inert with --whole-file,\n");
|
||||
printf(" --no-delta, or --no-incremental)\n");
|
||||
printf(" --no-fuzzy Disable --fuzzy\n");
|
||||
printf(" --delta-block <n> Delta block size in bytes (default: %d)\n",
|
||||
DELTA_BLOCK_SIZE_DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user