The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Yazen Ghannam <yazen.ghannam@amd.com>
To: <tools@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <konstantin@linuxfoundation.org>,
	"Yazen Ghannam" <yazen.ghannam@amd.com>
Subject: [PATCH] b4: Include git notes when generating patches
Date: Thu, 30 Jan 2025 20:13:31 +0000	[thread overview]
Message-ID: <20250130201331.73584-1-yazen.ghannam@amd.com> (raw)

By default, 'git show' will include git notes in its output. However,
this is not the case if '--format', or related flags, are given.

Include the '--notes' flag to include git notes in the generated patch.

This should have no effect on non-users of git notes.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
---
 src/b4/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/b4/__init__.py b/src/b4/__init__.py
index 4d234e01d993..23ee39bdabf9 100644
--- a/src/b4/__init__.py
+++ b/src/b4/__init__.py
@@ -3487,6 +3487,7 @@ def git_range_to_patches(gitdir: Optional[str], start: str, end: str,
             gitdir,
             [
                 'show',
+                '--notes',
                 '--format=email',
                 '--binary',
                 '--patch-with-stat',
-- 
2.43.0


             reply	other threads:[~2025-01-30 20:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-30 20:13 Yazen Ghannam [this message]
2025-01-30 20:30 ` [PATCH] b4: Include git notes when generating patches Konstantin Ryabitsev
2025-01-30 21:04   ` Yazen Ghannam
2025-01-30 21:29     ` 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=20250130201331.73584-1-yazen.ghannam@amd.com \
    --to=yazen.ghannam@amd.com \
    --cc=konstantin@linuxfoundation.org \
    --cc=linux-kernel@vger.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