Repository navigation
Add support for --no-verbose and --no-itemize-changes toggles - #2148
Conversation
There was a problem hiding this comment.
💡 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".
| NameOutputLevel::UpdatedOnly | ||
| } else { | ||
| NameOutputLevel::Disabled | ||
| }; | ||
| let name_overridden = matches.get_flag("itemize-changes"); | ||
| let name_overridden = itemize_changes_flag || no_itemize_changes_flag; |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
Testing
[Codex Task](