mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Dave Young <hidave.darkstar@gmail.com>
Cc: Matthew Wilcox <matthew@wil.cx>,
	gregkh@suse.de, linux-kernel@vger.kernel.org,
	linux-pci@atrey.karlin.mff.cuni.cz,
	Andrew Morton <akpm@linux-foundation.org>
Subject: The perfect patch - Posting a patch series (was Re: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core)
Date: Wed, 02 Jan 2008 12:14:33 +0100	[thread overview]
Message-ID: <477B7219.4080508@s5r6.in-berlin.de> (raw)
In-Reply-To: <a8e1da0801011829p15da81dcw9db0f7cbb5444467@mail.gmail.com>

Dave Young wrote:
> On Dec 29, 2007 7:42 PM, Stefan Richter <stefanr@s5r6.in-berlin.de> wrote:
>> However, Dave's postings lack a References: header which refer to his
>> 00/12 posting.
[To let mail readers show it as a thread.]
>> (Also, a bonus in the 00/12 posting would be a listing of all patch
>> titles in the series and the total diffstat of the series,
[similar to the "git pull" requests from maintainers]
>> but nearly nobody does this.)
...
> andrew recommends not to use 00/xx introduction email in series
> in his "The perfect patch":
> http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt

"Please don't post [PATCH 0/n] messages" is a simplified short-hand for
"Please don't move information which we want to include into the SCM
changelog into a separate [PATCH 0/n] message".

There is nothing wrong with a 0/n posting per se.  But whenever you
write a 0/n posting, ask yourself:
  - Isn't the information I provide here necessary to keep around by
    somebody who takes my patch series into his quilt series or into his
    source repository?
  - Couldn't the information here be useful at a later point in time
    when people look into the mainline Linux history?
If "yes" or "maybe yes", then add this information to the changelogs in
the patches.  You can then leave the 0/n posting as is, or make it
briefer, or omit it entirely.

It is never necessary to post a 0/n message, because _everything_ which
could be said in this message can also be said in the i/n messages.
(Things which are not meant for the SCM changelog can be written after a
"---" delimiter line or other patch delimiters.)  However, it is
sometimes convenient to repeat or summarize some of the information from
the i/n messages in a 0/n message.  Think about convenience of the
_recipients_ though, not about the sender's convenience.

Generally, the 0/n message fulfills purposes very similar to "git pull"
messages:  They give a brief overview of what is coming up in the series
and how to handle it, and it adds redundant information about the
contents of the series (titles, authors, overall diffstat, whether it
supersedes an earlier series) as a verification for the recipient
whether he really got what the sender intended to get to him.  This is
to help detect mix-ups at the sender's or receiver's side.

PS:
Writing a changelog is almost never trivial.  Even if it seems trivial
to the patch author, the change may not be trivial from other
developers' and maintainers' perspective, or from the author's
perspective when he looks at his patch a few months later.  This also
means that there may very well be information in the 0/n message which
should also appear in the i/n messages, even if this information seems
obvious to the author.
-- 
Stefan Richter
-=====-==--- ---= ---=-
http://arcgraph.de/sr/

  reply	other threads:[~2008-01-02 11:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-29  1:10 [PATCH 06/12] pci : Use mutex instead of semaphore in driver core Dave Young
2007-12-29  2:55 ` Matthew Wilcox
2007-12-29  5:08   ` Dave Young
2007-12-29 11:42   ` Stefan Richter
2007-12-29 12:16     ` Matthew Wilcox
2007-12-29 12:38       ` Stefan Richter
2008-01-02  2:29     ` Dave Young
2008-01-02 11:14       ` Stefan Richter [this message]
2008-01-02 11:41         ` The perfect patch - Posting a patch series (was Re: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core) Jan Engelhardt
2008-01-02 13:05           ` The perfect patch - Posting a patch series Stefan Richter
2008-01-03  6:10         ` The perfect patch - Posting a patch series (was Re: [PATCH 06/12] pci : Use mutex instead of semaphore in driver core) Dave Young

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=477B7219.4080508@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@suse.de \
    --cc=hidave.darkstar@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@atrey.karlin.mff.cuni.cz \
    --cc=matthew@wil.cx \
    /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

all inboxes | Powered by JetHome®