Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
From: Luca Weiss <luca@z3ntu.xyz>
To: tools@kernel.org
Subject: b4 custom git diff options (like -B)
Date: Sun, 10 Mar 2024 12:21:20 +0100	[thread overview]
Message-ID: <12393372.O9o76ZdvQC@g550jk> (raw)

Hi all,

I'm looking for a way to make b4 use the "-B" ("--break-rewrites") option for 
git diff when sending a patch where this option makes the diff way more 
readable than without.

I currently don't see any way to either tell b4 to use this option, or to tell 
git to (temporarily) use this option when generating any diff.

For now I'm hacking up b4 in git_range_to_patches to add "-B" to the git show 
command there, but I think it would make sense that adding custom options for 
a single series was supported with some b4 prep command.

Regards
Luca



             reply	other threads:[~2024-03-10 11:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10 11:21 Luca Weiss [this message]
2024-03-11 13:44 ` b4 custom git diff options (like -B) Konstantin Ryabitsev
2024-03-11 13:50 ` Kernel.org Bugbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12393372.O9o76ZdvQC@g550jk \
    --to=luca@z3ntu.xyz \
    --cc=tools@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).