public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Leif Lindholm <leif.lindholm@linaro.org>,
	Stefan Hajnoczi <stefanha@redhat.com>
Cc: devel@edk2.groups.io, Bob Feng <bob.c.feng@intel.com>,
	Liming Gao <liming.gao@intel.com>,
	Laszlo Ersek <lersek@redhat.com>
Subject: Re: [PATCH 0/3] BaseTools: Add a script to use with 'git-send-email --cc-cmd'
Date: Wed, 16 Oct 2019 18:50:29 +0200	[thread overview]
Message-ID: <09862a75-0aa5-84b2-ceab-1728ba7c17d0@redhat.com> (raw)
In-Reply-To: <20191016151812.GT25504@bivouac.eciton.net>

On 10/16/19 5:18 PM, Leif Lindholm wrote:
> Hi Phil,
> 
> This is definitely a manual step that could do with automation, so
> many thanks for having a go. ...But, I have a few reservations
> regarding the actual solution.
> 
> First of all, doing it as a .sh means it will not work for those
> developers working primarily with Visual Studio. Rewriting it as
> python script would resolve this, and also let you import
> GetMaintainer.py and use functions from there instead of adding a
> quiet mode to that. (I would very much like to not turn the
> GetMaintainer.py output into an ABI.)

OK. I was not expecting the .sh to get merged but wanted to have 
feedback as in a RFC, so I sent it mostly as a proof of concept.

> Secondly, I agree with Laszlo that I would rather see something that
> operated with format-patch than send-email (since we want to keep the
> Cc: tags in the commit messages). That command does not have the same
> useful hook, however.

Laszlo's reply and yours are the feedback I was expecting :)

> For this reason *I* would not use said script, but I'm not going to
> say we shouldn't have it. I will say it shouldn't be enabled by
> default by SetupGit.py though.

Well, I wrote it because I use git-publish in my workflow and wanted to 
use your GetMaintainer script output to select the recipients.

I'm not custom to the Cc tag (I don't use it). Maybe my problem is 
git-publish not handling correctly the Cc tag feature, so forget about 
this series for now, I'll see how to better integrate both tools in my 
workflow and eventually respin (without using your script as a stable ABI).

Regards,

Phil.

> On Wed, Oct 16, 2019 at 04:09:37PM +0200, Philippe Mathieu-Daude wrote:
>> This series contains trivial fixes to the GetMaintainer.py script,
>> then adds a new script which allow git-send-email to automatically
>> fills the email addresses relevant to each patch, using the new
>> Maintainer.txt format (with the GetMaintainer.py script).
>>
>> I sent this series adding:
>>
>> [sendemail]
>>      ccCmd = /home/phil/source/edk2/BaseTools/Scripts/GitCcCmd.sh
>>
>> To my /home/phil/source/edk2/.git/config
>>
>> The sendemail.ccCmd entry is documented here:
>> https://git-scm.com/docs/git-send-email#Documentation/git-send-email.txt---cc-cmdltcommandgt
>>
>> Regards,
>>
>> Phil.
>>
>> Philippe Mathieu-Daudé (3):
>>    BaseTools: Let the GetMaintainer.py script be executable
>>    BaseTools: Add '--quiet' option to GetMaintainer.py script
>>    BaseTools: Add script to help git-send-email pick addresses to cc
>>
>>   BaseTools/Scripts/GetMaintainer.py |  9 +++++--
>>   BaseTools/Scripts/GitCcCmd.sh      | 38 ++++++++++++++++++++++++++++++
>>   2 files changed, 45 insertions(+), 2 deletions(-)
>>   mode change 100644 => 100755 BaseTools/Scripts/GetMaintainer.py
>>   create mode 100755 BaseTools/Scripts/GitCcCmd.sh
>>
>> -- 
>> 2.21.0
>>

  reply	other threads:[~2019-10-16 16:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16 14:09 [PATCH 0/3] BaseTools: Add a script to use with 'git-send-email --cc-cmd' Philippe Mathieu-Daudé
2019-10-16 14:09 ` [PATCH 1/3] BaseTools: Let the GetMaintainer.py script be executable Philippe Mathieu-Daudé
2019-10-18  1:44   ` Bob Feng
2019-10-16 14:09 ` [PATCH 2/3] BaseTools: Add '--quiet' option to GetMaintainer.py script Philippe Mathieu-Daudé
2019-10-16 14:09 ` [PATCH 3/3] BaseTools: Add script to help git-send-email pick addresses to cc Philippe Mathieu-Daudé
2019-10-16 14:12   ` Philippe Mathieu-Daudé
2019-10-16 14:49 ` [PATCH 0/3] BaseTools: Add a script to use with 'git-send-email --cc-cmd' Laszlo Ersek
2019-10-16 15:18 ` Leif Lindholm
2019-10-16 16:50   ` Philippe Mathieu-Daudé [this message]
2019-10-16 18:30     ` Stefan Hajnoczi

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-list 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=09862a75-0aa5-84b2-ceab-1728ba7c17d0@redhat.com \
    --to=devel@edk2.groups.io \
    /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