Skip to content

Add support for --no-verbose and --no-itemize-changes toggles - #2148

Merged
oferchen merged 1 commit into
masterfrom
implement-oc-rsync-with-upstream-parity
Nov 14, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-oc-rsync-with-upstream-parity

Conversation

@oferchen

@oferchen oferchen commented Nov 14, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add CLI parsing and help coverage for --no-verbose and --no-itemize-changes
  • ensure parser propagates the toggles and updates supported options metadata
  • extend regression tests to cover parsing order and transfer behaviour for the new flags

Testing

  • cargo test

[Codex Task](

@oferchen
oferchen merged commit 99d41e3 into master Nov 14, 2025
@oferchen
oferchen deleted the implement-oc-rsync-with-upstream-parity branch November 14, 2025 12:18

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 303 to +307
NameOutputLevel::UpdatedOnly
} else {
NameOutputLevel::Disabled
};
let name_overridden = matches.get_flag("itemize-changes");
let name_overridden = itemize_changes_flag || no_itemize_changes_flag;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep verbose listings enabled when --no-itemize-changes is used

Setting name_overridden to itemize_changes_flag || no_itemize_changes_flag means that name_overridden becomes true even when the user only passes --no-itemize-changes. The rendering code (crates/cli/src/frontend/progress/render.rs, e.g. lines 74‑79 and 333‑359) interprets name_overridden as “the user explicitly asked for name output”, and therefore suppresses the verbose listing whenever name_level is disabled. As a result, oc-rsync -v --no-itemize-changes … now prints no file names at all, which regresses the previous behaviour and differs from upstream rsync (where -v still lists files while --no-itemize-changes just cancels -i). Only the positive toggle should set name_overridden, or the negative flag should be tracked separately, so that -v keeps working even when the user explicitly disables itemize changes.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant