Re: [patch 2/2] Documentation/process: Add tip tree handbook

From: Dan Williams
Date: Thu Nov 08 2018 - 17:56:23 EST


On Thu, Nov 8, 2018 at 12:14 PM Theodore Y. Ts'o <tytso@xxxxxxx> wrote:
>
> On Thu, Nov 08, 2018 at 09:19:33AM -0800, Dan Williams wrote:
> >
> > I know at least StGit mail does not grok that "#"notation. I've
> > stopped using it in favor of a "Fixes:" tag. I would think "Fixes:" is
> > preferred over "# <KVER>" if only because it can be used to track
> > fixes to commits that have been backported to stable. Is there any
> > reason for "# <KVER>" to continue in a world where we have "Fixes:"?
>
> The main annoyance I have with Fixes is because it can be a pain to
> figure out what the "# <KVER>" would be. Something like:
>
> % tag --contains DEADBEEF | grep ^v | head
>
> doesn't work because kernel version numbers don't sort obviously. So
> v4.10 comes before v4.3 using a normal sort, and even sort -n doesn't
> do the right.

Unless I'm misunderstanding, I think you want:

git describe --contains $COMMIT --match=v[345]*

...which should give you the latest tagged kernel according to that match spec.