Skip to contentSkip to conversation

b4 custom git diff options (like -B)

DISCUSSION Luca Weiss 3 participants 3 messages Mar 10, 2024 – Mar 11, 2024

lore
Share & tools
lore

Luca Weiss

author
#0 lore 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

#1 lore raw
Quoted 6 lines · Luca Weiss

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.

Yes, this should exist.

bugbot assign to me