RFE: commit git-patch-id lookup links

Eric Wong e at 80x24.org
Fri Oct 7 21:14:49 UTC 2022

Konstantin Ryabitsev <konstantin at linuxfoundation.org> wrote:
> Hi, all:
> One of the recent additions to public-inbox was auto-indexing of patches by
> their patch-id (see git-patch-id.1). This allows to see a history of many
> commits through public-inbox discussions. Using a random commit as an example:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e4dc45b1848bc6bcac31eb1b4ccdd7f6718b3c86
> We can convert it to a patch-id and look up its history:
> $ echo "https://lore.kernel.org/all/?q=patchid:$(git show e4dc45b1848 | git patch-id --stable | awk '{print $1}')"
> https://lore.kernel.org/all/?q=patchid:d91c951338cfe9f06e8b8aa74856f6dc08ac8212

Fwiw, patchid: doesn't account for some cases where non-standard options
are used for generating patches (e.g. -W, -U<n>).  Admittedly they're
rare cases...

I've been favoring searches for postimage blob IDs (since pre-patchid
in public-inbox), possibly combined with Subject: phrase matches.

Fwiw, public-inbox can show git commits and prefill search forms:

the top search form has `patchid:' pre-filled, and the form below the
patch has `dfblob:' pre-filled.  Subject (`s:') isn't pre-filled, yet
(haven't decided how to signify that's optional in the UI).

More information about the CGit mailing list