* [PATCH b4] Create patches with --default-prefix
@ 2024-10-19 3:44 Matt Johnston
2025-01-22 15:35 ` Konstantin Ryabitsev
0 siblings, 1 reply; 2+ messages in thread
From: Matt Johnston @ 2024-10-19 3:44 UTC (permalink / raw)
To: Kernel.org Tools; +Cc: Konstantin Ryabitsev, Matt Johnston
This matches the behaviour of `git format-patch` to ignore diff.noprefix
config (added in git 2.41.0 [1]). Otherwise b4 generated patches will
be missing the top level a/ b/ prefix when diff.noprefix config is set.
[1] https://github.com/git/git/commit/c169af8f7ab521cc47b59f104db78847e324a3cb
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
---
src/b4/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/b4/__init__.py b/src/b4/__init__.py
index 5115a9cd9b8746f84eb104a2be69fe121724167e..7ecff36005149300d8ae716a3d4a7da813a01b51 100644
--- a/src/b4/__init__.py
+++ b/src/b4/__init__.py
@@ -3469,6 +3469,7 @@ def git_range_to_patches(gitdir: Optional[str], start: str, end: str,
'--binary',
'--patch-with-stat',
'--encoding=utf-8',
+ '--default-prefix',
commit,
],
decode=False,
---
base-commit: 2a6338e451a0c1e81f214f48c820c1e52d76b2f1
change-id: 20241019-pr-diff-prefix-bc3dff956a20
Best regards,
--
Matt Johnston <matt@codeconstruct.com.au>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-22 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-19 3:44 [PATCH b4] Create patches with --default-prefix Matt Johnston
2025-01-22 15:35 ` Konstantin Ryabitsev
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 NNTP newsgroup(s).