Skip to content

prep, diff: support passing arguments to range-diff

Antonin Godard tools 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250127-creation-factor-ce8069a0bb3c

Versions newest first

  1. v3 Latest2 patches 1 replyApplied
  2. v23 patches 1 replySuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Fix erroneous commit titles and descriptions.
- Merge doc commit in corresponding prep/diff commits.
- Fix an issue with diff.py's rd_opts array not handled correctly.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2diff: support passing arguments to git range-diffdocs/maintainer/diff.rst src/b4/command.py src/b4/diff.py+17 -20 replies
2/2prep: support passing arguments to git range-diffdocs/contributor/prep.rst src/b4/command.py src/b4/ez.py+15 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH b4 v3 0/2] prep, diff: support passing arguments to range-diff

Add --range-diff-opts to diff and prep to pass additional options to the git range-diff command. It can be useful when the output of git range-diff needs adjustments, such as modifying the creation factor.

Examples:
b4 --debug prep --compare-to v1 --range-diff-opts "--creation-factor=80 --no-dual-color" b4 diff --range-diff-opts "--creation-factor=80" [email protected]

---
Changes in v3:
- Fix erroneous commit titles and descriptions.
- Merge doc commit in corresponding prep/diff commits.
- Fix an issue with diff.py's rd_opts array not handled correctly.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- As suggested by Konstantin, change "--creation-factor" to "--range-diff-opts" to be able to add git range-diff arguments more generally.
- Add a commit to document the option.
- Link to v1: https://patch.msgid.link/[email protected]

---
Antonin Godard (2):
diff: support passing arguments to git range-diff
prep: support passing arguments to git range-diff

 docs/contributor/prep.rst |  6 ++++++
 docs/maintainer/diff.rst  |  5 +++++
 src/b4/command.py         |  4 ++++
 src/b4/diff.py            | 12 ++++++++++--
 src/b4/ez.py              |  9 +++++++--
 5 files changed, 32 insertions(+), 4 deletions(-)

---
base-commit: 42535902a457332560d860608b770fca9eea1382
change-id: 20250127-creation-factor-ce8069a0bb3c

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>