Skip to content

YETUS-1276. Add --patch-mode flag to control diff-vs-patch preference#385

Open
ndimiduk wants to merge 1 commit into
apache:mainfrom
ndimiduk:YETUS-1276
Open

YETUS-1276. Add --patch-mode flag to control diff-vs-patch preference#385
ndimiduk wants to merge 1 commit into
apache:mainfrom
ndimiduk:YETUS-1276

Conversation

@ndimiduk
Copy link
Copy Markdown
Member

YETUS-983 hardcoded dryrun_both_files to prefer cumulative .diff over per-commit .patch. This may not work for all projects (binary handling is a known concern), so make the preference configurable.

--patch-mode=diff (default) preserves YETUS-983 behavior. --patch-mode=patch restores pre-YETUS-983 behavior. The non-preferred format is always tried as fallback.

YETUS-983 hardcoded dryrun_both_files to prefer cumulative .diff over
per-commit .patch. This may not work for all projects (binary handling
is a known concern), so make the preference configurable.

--patch-mode=diff (default) preserves YETUS-983 behavior.
--patch-mode=patch restores pre-YETUS-983 behavior.
The non-preferred format is always tried as fallback.
@ndimiduk ndimiduk requested review from aw-was-here and cnauroth May 11, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant