public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Jordan Justen <jordan.l.justen@intel.com>
Cc: "Yao, Jiewen" <jiewen.yao@intel.com>,
	 "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Chan, Amy" <amy.chan@intel.com>
Subject: Re: [PATCH] Maintainers.txt: Add Giri as 2nd maintainer
Date: Wed, 7 Sep 2016 18:49:21 +0100	[thread overview]
Message-ID: <CAKv+Gu9e__ufs-UE=7-3PunrneQugGOkbRv_oga=k58=RNghOQ@mail.gmail.com> (raw)
In-Reply-To: <147326996342.12894.6103663724254201876@jljusten-ivb>

On 7 September 2016 at 18:39, Jordan Justen <jordan.l.justen@intel.com> wrote:
> On 2016-09-07 01:00:46, Yao, Jiewen wrote:
>>    Jordan
>>
>>    I have a quick check:
>>
>>    Here is my observation:
>>
>>    1)      From
>>    https://github.com/tianocore/tianocore.github.io/wiki/Commit-Message-Format,
>>    it mentions:
>>
>>      o The length of 'Pkg-Module: Brief-single-line-summary' should not
>>        exceed 70 characters
>>
>>    2)      In the PatchCheck.py, we have below code:
>>
>>           if count >= 1 and len(lines[0]) > 76:
>>
>>                self.error('First line of commit message (subject line) ' +
>>
>>                           'is too long.')
>>
>
> I think the general idea of the subject line is described well here as
> the "summary phrase":
>
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=bca47613#n493
>
> Regarding subject line length, I think that it should work well with
> git log --oneline to produce output less than 80 characters. Based on
> the standard prefix in git log --oneline, this would indicate that we
> should try to use less than 72 characters. I guess the kernel uses
> 70-75 characters for guidance.
>
>>
>>    3)      You recommendation
>>    “Maintainers.txt: Add Giri as IntelFsp2*Pkg, IntelSiliconPkg maintainer”,
>>    it is 71 char.
>>
>>    However, if we add “[edk2] [PATCH]”, it becomes 85 char.
>>
>
> Hmm, I don't think "[edk2] [PATCH]" should be factored into the
> length. The length after applying in git is what should matter. Is
> this is a bug in PatchCheck.py?
>
> I think maybe the subject line length could be a warning from
> PatchCheck.py, but it is almost always possible to reword the subject
> line fairly easily. If it is difficult to make a good short subject
> line, then it might be a sign that the patch should be split. For
> example, you could split this patch in 2. One for IntelFsp2*Pkg, and
> another for IntelSiliconPkg. (After all, they are 2 separate package
> types, so it is reasonable to change them separately.)
>

Please no. It is outright ridiculous to split a maintainer update
patch that adds the same person to two packages into two patches, only
because the subject line becomes too long otherwise. We are not
changing code here, things are not becoming easier to understand by
doing so, and 'making the tool happy' is the worst reason I can think
of to change a perfectly good patch.


  reply	other threads:[~2016-09-07 17:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-07  1:21 [PATCH] Maintainers.txt: Add Giri as 2nd maintainer Jiewen Yao
2016-09-07  3:50 ` Mudusuru, Giri P
2016-09-07  7:08 ` Jordan Justen
2016-09-07  7:21   ` Yao, Jiewen
2016-09-07  8:00     ` Yao, Jiewen
2016-09-07 17:39       ` Jordan Justen
2016-09-07 17:49         ` Ard Biesheuvel [this message]
2016-09-07 18:08           ` Jordan Justen
2016-09-07 22:31         ` Yao, Jiewen
2016-09-08  4:19           ` Mudusuru, Giri P
2016-09-08  5:06           ` Jordan Justen
2016-09-08  5:15             ` Yao, Jiewen

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='CAKv+Gu9e__ufs-UE=7-3PunrneQugGOkbRv_oga=k58=RNghOQ@mail.gmail.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