From: Eric Wong <e@80x24.org>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
phillip.wood@dunelm.org.uk, Florian Schmaus <flo@geekplace.eu>,
git@vger.kernel.org
Subject: Re: [PATCH] setup: support GIT_IGNORE_INSECURE_OWNER environment variable
Date: Tue, 2 Jul 2024 00:19:52 +0000 [thread overview]
Message-ID: <20240702001953.M35917@dcvr> (raw)
In-Reply-To: <20240701222541.GC20683@coredump.intra.peff.net>
Jeff King <peff@peff.net> wrote:
> On Mon, Jul 01, 2024 at 01:40:18PM -0700, Junio C Hamano wrote:
> > Thanks. I wonder if there is a way to add this kind of pieces of
> > information to old commits and discussion threads around it after
> > the fact, and if it helps us (like Dscho who wondered why we decided
> > if it is a good idea, and more importantly if we still think it is a
> > good idea and why).
> >
> > ... and then goes back to see the original discussion thread,
> > with the "bright idea" that I could just follow up on 14-year
> > old discussion thread. Only to find that despite what Dscho
> > said, the commit message does say why it is desirable ("to
> > imitate remote transport well") already.
> >
> > So, I guess we do not really need to do such a post-annotation in
> > this particular case, but I think after seeing somebody posting a
> > message like the one I am responding to and finding it helpful, it
> > would be helpful if somebody can post a message pointing at it as a
> > response to the old thread that wants a post-annotation.
I think adding code comments referencing commit OIDs and URLs
with Message-IDs can help. I've noticed many people (usually in
other projects) haven't learned to use git (log|blame) :<
> Usually I find myself digging backwards in history, following links to
> old threads. But I guess what you are asking is how would somebody
> looking at old thread XYZ know that it was mentioned much later.
>
> And I think the solution is for the new thread to just link to the old
> one by message-id (i.e., the usual lore links). And then searching for
> that message-id in the archive could turn up the later threads. I don't
> know how well public-inbox handles that in practice, though:
>
> 1. Do things that look like message-ids get searched for in message
> bodies? I'd think so if you don't explicitly say "this is a message
> id".
Yes, encapsulating via double-quotes to turn it into a phrase
search may help if the Message-ID contains dashes and such.
> 2. It's really a multi-element search. If I have a thread with 10
> messages, I'd really like to know of more recent threads that
> linked back to _any_ message in the thread. You'd probably have to
> feed them all manually. But in theory indexing could generate some
> kind of bidirectional "related" link.
You can also join a bunch of Message-IDs (or any other query)
via `OR' elements to ensure you don't miss things.
<https://xapian.org/docs/queryparser.html> has a lot more
details on combining things which apply to notmuch, too.
> I don't often do this with message-ids, but I frequently do find other
> references by doing a full-text search for commit hashes, or phrases
> from commit subjects. I usually do so with my local notmuch archive,
> rather than using public-inbox, but I think you should be able to do
> phrase searches there, too.
Yeah. That's fairly easy to do for Junio's git <=> git@vger
mirror. It's more challenging to make work (and presentable)
for hundreds of kernel list archives and linux.git mirrors,
especially on my 15 year old hardware, but progress is being
made since I'm resorting to using C++ for Xapian :x
prev parent reply other threads:[~2024-07-02 0:29 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 12:33 [PATCH 0/1] support GIT_IGNORE_INSECURE_OWNER environment variable Florian Schmaus
2024-06-26 12:33 ` [PATCH] setup: " Florian Schmaus
2024-06-26 13:11 ` Phillip Wood
2024-06-26 15:19 ` rsbecker
2024-06-26 18:38 ` phillip.wood123
2024-06-26 15:26 ` Phillip Wood
2024-06-26 18:11 ` Junio C Hamano
2024-06-26 19:06 ` Florian Schmaus
2024-06-26 20:37 ` Jeff King
2024-06-27 9:50 ` Phillip Wood
2024-06-27 15:28 ` Junio C Hamano
2024-06-28 9:35 ` Phillip Wood
2024-06-28 16:48 ` Junio C Hamano
2024-07-01 15:24 ` Phillip Wood
2024-07-01 17:32 ` Junio C Hamano
2024-07-01 16:34 ` Johannes Schindelin
2024-07-01 18:19 ` Jeff King
2024-07-01 20:40 ` Junio C Hamano
2024-07-01 22:25 ` Jeff King
2024-07-02 0:19 ` Eric Wong [this message]
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=20240702001953.M35917@dcvr \
--to=e@80x24.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=flo@geekplace.eu \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=phillip.wood@dunelm.org.uk \
/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