Add support for --no-from0 alias#2140
Merged
Merged
Conversation
6 tasks
oferchen
added a commit
that referenced
this pull request
May 14, 2026
Mirrors upstream rsync 3.4.1 behaviour at checksum.c:197-198 where parse_checksum_choice unconditionally sets whole_file = 1 when the negotiated transfer checksum is CSUM_NONE. The delta algorithm cannot run without a transfer checksum, so whole-file transfer is the only valid mode. Changes: - Add StrongChecksumAlgorithm::None and accept `none` (case-insensitive) via --checksum-choice/--cc, forwarding it to the remote peer. - ClientConfigBuilder::build now promotes whole_file to Some(true) whenever checksum_choice.transfer_is_none(); explicit --no-whole-file is silently overridden (matching upstream's unconditional assignment). - Regression tests at the builder layer (checksum_choice_none_promotes_whole_file, checksum_choice_none_overrides_explicit_no_whole_file) and at the CLI parser layer (test_checksum_choice_none_parses, _via_cc_alias). - Refresh the mutual-exclusion audit matrix and oc-rsync(1) man page so `none` is documented; mark G1 RESOLVED. Closes #2139, #2140, #2141.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Codex Task