Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
* [PATCH b4 v3 0/2] prep, diff: support passing arguments to range-diff
@ 2025-03-04 13:00 Antonin Godard
  2025-03-04 13:00 ` [PATCH b4 v3 1/2] diff: support passing arguments to git range-diff Antonin Godard
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Antonin Godard @ 2025-03-04 13:00 UTC (permalink / raw)
  To: Kernel.org Tools; +Cc: Konstantin Ryabitsev, Thomas Petazzoni, Antonin Godard

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" 20250220-creation-factor-v2-0-7a0949a3a060@bootlin.com

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
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/20250220-creation-factor-v2-0-7a0949a3a060@bootlin.com

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/20250204-creation-factor-v1-0-9988d594a018@bootlin.com

---
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,
-- 
Antonin Godard <antonin.godard@bootlin.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-05 20:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04 13:00 [PATCH b4 v3 0/2] prep, diff: support passing arguments to range-diff Antonin Godard
2025-03-04 13:00 ` [PATCH b4 v3 1/2] diff: support passing arguments to git range-diff Antonin Godard
2025-03-04 13:00 ` [PATCH b4 v3 2/2] prep: " Antonin Godard
2025-03-05 20:46 ` [PATCH b4 v3 0/2] prep, diff: support passing arguments to range-diff Konstantin Ryabitsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox