public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely@redhat.com>
To: Martin Sebor <msebor@gmail.com>
Cc: gcc Patches <gcc-patches@gcc.gnu.org>, Martin Sebor <msebor@redhat.com>
Subject: Re: [RFC] [wwwdocs] Rewrite docs on commit message and patch format
Date: Tue, 15 Jun 2021 10:39:58 +0100	[thread overview]
Message-ID: <CACb0b4nzMFWv0xtT43d5K_L5vvWLm=yrk=1XDchKaJ05b2-bLQ@mail.gmail.com> (raw)
In-Reply-To: <858882ae-9a19-51b7-531c-d2be4bc303c7@gmail.com>

On Tue, 15 Jun 2021 at 01:12, Martin Sebor wrote:
>
> On 6/14/21 10:25 AM, Jonathan Wakely via Gcc-patches wrote:
> > I think this is an improvement on the current structure of the docs,
> > but I'd like to hear what others think.
>
> The text looks more detailed and arguably more accurate but also
> makes it sound more complicated and rigid than necessary.  It
> also doesn't look like the commit hook tries to enforce many of
> these elements.  If it did, quite a number of commits would fail.
>
> So I'm not sure about the value of documenting expectations that
> only few commits would meet.

We don't have to be too strict, but encouraging good practice still
makes the commit logs more useful. Even if only 50% of commit follow
it, that still seems to make the logs easier to skim than if there is
no consistency at all.

>  E.g., including the Component tag,
> or putting PRnnnnn at the end of the Subject line with no space
> (why ask for no space and not, for example PR #nnnnn?)  In fact,

That was always there, I just moved it from one page to another. I
have traditionally used a space before the bug number, so I'm fine
with that format, but I don't really think it makes the docs better to
list too many variations. And I am not trying to make big changes to
the policy with this patch, just reorganize the existing docs to
reflect the modern workflow (i.e. Git commits with automatically
generated ChangeLog files, rather than everything being about the
ChangeLog).

> unless we mean it (and are willing to enforce it) I think it
> would be best to either leave it out completely, or make it clear
> that it's not required.

If we don't enforce it, then it's not required. Commits that don't do
it will still get in.

I think suggesting a single format (but allowing variations on it) is
**much** better than not saying anything at all. For new contributors
it's helpful to say "this is what we want" so they have a guideline to
follow.

My revised patch sent a few minutes ago adds:

<p>A major benefit of a good, descriptive subject line is that it makes
the output of <code>git log --oneline</code> more useful. Including the
component tag and bug number(s) helps with that, but isn't compulsory
if the subject is already clear and has enough context.</p>

Does that make you happier?


  reply	other threads:[~2021-06-15  9:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-14 16:25 Jonathan Wakely
2021-06-15  0:12 ` Martin Sebor
2021-06-15  9:39   ` Jonathan Wakely [this message]
2021-06-15 12:21     ` Segher Boessenkool
2021-06-15 17:37     ` Martin Sebor
2021-06-15 12:10   ` Segher Boessenkool
2021-06-15  9:30 ` Jonathan Wakely
2021-06-15 12:02   ` Segher Boessenkool
2021-06-15 12:00 ` Segher Boessenkool
2021-06-15 13:12   ` Jonathan Wakely
2021-06-15 14:24     ` Segher Boessenkool
2021-06-15 15:01       ` Jonathan Wakely
2021-06-15 15:04       ` Jakub Jelinek
2021-06-15 15:20         ` Segher Boessenkool

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='CACb0b4nzMFWv0xtT43d5K_L5vvWLm=yrk=1XDchKaJ05b2-bLQ@mail.gmail.com' \
    --to=jwakely@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=msebor@gmail.com \
    --cc=msebor@redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).