From: "Yoann Congal" <yoann.congal@smile.fr>
To: "Alexander Kanavin" <alex.kanavin@gmail.com>
Cc: <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] lib/oe/patch: avoid duplicated "From:" in generated patches
Date: Thu, 16 Jul 2026 21:36:21 +0200 [thread overview]
Message-ID: <DK08YDP0HG03.1YUY01SIYRENG@smile.fr> (raw)
In-Reply-To: <CANNYZj_q-EHN+GxGT0--7BcnpYWptBT-8DC8Mi6CvGnXaMQfNg@mail.gmail.com>
On Thu Jul 16, 2026 at 8:56 PM CEST, Alexander Kanavin wrote:
> On Thu, 16 Jul 2026 at 19:08, Yoann Congal <yoann.congal@smile.fr> wrote:
>> >> To fix the double "From:" header, use the --no-from option for
>> >> git-format-patch to override this configuration and generate only one
>> >> "From: Original Author <...>" header.
>> >
>> > I don't understand. Why is the above problematic and why does it need fixing?
>> >
>> I really don't like this double "From:" header and I manually remove it
>> every time I (re)generate a patch with devtool.
>>
>> I admit this is a matter of taste and that the problem only appears in
>> my configuration (it seems).
>>
>> I won't mind is this patch is dropped, but, on the other hand it only
>> does force the default (--no-from)
>
> Can you provide a reproducer? What is the sequence of steps where this happens?
>
> Alex
Sure, I can reproduce this from a pristine CROPS:debian-11:
$ git config --global user.name 'Yoann Congal'
$ git config --global user.email yoann.congal@smile.fr
# Config to avoid groups.io "From:" rewrites issues
$ git config --global format.from true
$ git config --global format.forceInBodyFrom true
# Basic poky-master setup with bitbake-setup
$ devtool modify bash
$ cd workspace/sources/bash
# Emulate cherry-picking a commit from the upstream git tree
$ echo TEST >> README
$ git commit -a --author 'Original Author <author@example.org>' -s -m "This is a test"
$ devtool update-recipe bash
$ head ../../../../layers/openembedded-core/meta/recipes-extended/bash/bash/0001-This-is-a-test.patch
From 8bbac77f0b749fc62e5ca5d924066d311e29c963 Mon Sep 17 00:00:00 2001
From: Yoann Congal <yoann.congal@smile.fr>
Date: Thu, 16 Jul 2026 19:31:55 +0000
Subject: [PATCH] This is a test
From: Original Author <author@example.org>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
README | 1 +
# Notice the double "From:" header above
Here, I usually edit the patch to replace my "From:" with the original
author's one.
Regards,
--
Yoann Congal
Smile ECS
next prev parent reply other threads:[~2026-07-16 19:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 18:52 [PATCH] lib/oe/patch: avoid duplicated "From:" in generated patches Yoann Congal
2026-07-13 12:59 ` [OE-core] " Alexander Kanavin
2026-07-16 17:08 ` Yoann Congal
2026-07-16 18:56 ` Alexander Kanavin
2026-07-16 19:36 ` Yoann Congal [this message]
2026-07-17 15:27 ` Alexander Kanavin
2026-07-18 9:19 ` Yoann Congal
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=DK08YDP0HG03.1YUY01SIYRENG@smile.fr \
--to=yoann.congal@smile.fr \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.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