tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Rob Herring (Arm)" <robh@kernel.org>
To: tools@kernel.org
Subject: [PATCH] Ensure patches show moves rather than add/delete
Date: Tue, 17 Dec 2024 10:11:46 -0600	[thread overview]
Message-ID: <20241217161146.1943425-1-robh@kernel.org> (raw)

Don't rely of users' gitconfig when generating patches with a move. The
default now for gitconfig is this is enabled, but I'm pretty sure it used
to be disabled by default. In any case, users mess with long time defaults
like threading for no good reason.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
Maybe we want -C and -B too? Those don't happen too often compared to moves.
---
 src/b4/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/b4/__init__.py b/src/b4/__init__.py
index bb93656d8ad7..a63520792df5 100644
--- a/src/b4/__init__.py
+++ b/src/b4/__init__.py
@@ -3464,6 +3464,7 @@ def git_range_to_patches(gitdir: Optional[str], start: str, end: str,
             gitdir,
             [
                 'show',
+                '-M',
                 '--format=email',
                 '--full-index',
                 '--binary',
-- 
2.45.2


             reply	other threads:[~2024-12-17 16:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-17 16:11 Rob Herring (Arm) [this message]
2024-12-18 20:04 ` [PATCH] Ensure patches show moves rather than add/delete Christian Heusel
2025-01-22 16:01   ` Konstantin Ryabitsev

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=20241217161146.1943425-1-robh@kernel.org \
    --to=robh@kernel.org \
    --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 NNTP newsgroup(s).