git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeff King <peff@peff.net>
To: Stefan Beller <sbeller@google.com>
Cc: Philip Oakley <philipoakley@iee.org>,
	Junio C Hamano <gitster@pobox.com>,
	Christian Couder <christian.couder@gmail.com>,
	git <git@vger.kernel.org>, Ben Peart <Ben.Peart@microsoft.com>,
	Jonathan Tan <jonathantanmy@google.com>,
	Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
	Mike Hommey <mh@glandium.org>,
	Lars Schneider <larsxschneider@gmail.com>,
	Eric Wong <e@80x24.org>,
	Christian Couder <chriscool@tuxfamily.org>
Subject: Re: On the nature of cover letters [WAS Re: [PATCH 0/6] Create Git/Packet.pm]
Date: Thu, 2 Nov 2017 03:22:37 -0400	[thread overview]
Message-ID: <20171102072237.wbmrzrgfyxdb3m3v@sigill.intra.peff.net> (raw)
In-Reply-To: <CAGZ79kYghF6=AzL1N96fe2zixHCERXu=RpxHw2-kdUrU+j4CXw@mail.gmail.com>

On Wed, Nov 01, 2017 at 03:31:42PM -0700, Stefan Beller wrote:

> On Wed, Nov 1, 2017 at 9:42 AM, Stefan Beller <sbeller@google.com> wrote:
> 
> >> So it may make more sense just to cross-reference those merges with the
> >> topics that spawned them on the mailing list. I.e., instead of copying
> >> the cover letter contents, just record the message-id (and update it
> >> whenever a new iteration of a topic is picked up via "git am"). That
> >> lets you get the cover letter information _and_ see any discussion
> >> or review around the patch.
> >
> > That sounds good.
> 
> Actually I just found out about `am.messageId`, which adds the individual
> message id as a footer. Maybe that is good enough? (Though it would
> clutter every commit, not just the merge commits)

It also means digging around to find the apex of the thread (though
generally that can be done automatically with sufficiently smart
tooling; I think public-inbox can do it pretty easily).

I also like the idea that I could read "log --first-parent" to get an
overview of the topics (with links). But probably associating a message
id with each patch smooths out a lot of corner cases (it sidesteps the
"where do you store it until the commit is made" question, and it
works when there's no cover letter). And it gives enough hint for other
software to figure out everything else.

If the clutter is too much, it could also go into a git-notes ref
(that's not already implemented, but it seems like it would be pretty
easy to teach "git am" to do that).

For a while, Thomas Rast used a script to heuristically create that
mapping via git-notes after the fact. But if "git am" just did it
automatically on behalf of Junio, that would be more robust.

I will admit that I found I didn't use the mapping generated by Thomas's
script all that much. But I do keep a local mailing list index and often
search for the commit's subject as a mail subject, which roughly
accomplishes the same thing.

-Peff

  reply	other threads:[~2017-11-02  7:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30 18:29 On the nature of cover letters [WAS Re: [PATCH 0/6] Create Git/Packet.pm] Stefan Beller
2017-11-01  7:14 ` Jeff King
2017-11-01 16:42   ` Stefan Beller
2017-11-01 22:31     ` Stefan Beller
2017-11-02  7:22       ` Jeff King [this message]
2017-11-02  7:48         ` Junio C Hamano
2017-11-02  8:01           ` Jeff King
2017-11-02 18:03             ` Stefan Beller

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171102072237.wbmrzrgfyxdb3m3v@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=Ben.Peart@microsoft.com \
    --cc=chriscool@tuxfamily.org \
    --cc=christian.couder@gmail.com \
    --cc=e@80x24.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jonathantanmy@google.com \
    --cc=larsxschneider@gmail.com \
    --cc=mh@glandium.org \
    --cc=pclouds@gmail.com \
    --cc=philipoakley@iee.org \
    --cc=sbeller@google.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).