NeilBrown wrote:

> Does anyone know an easy way to tell if a given commit is 'in' a given
> release?
>
> (looks in man pages ...)
>
> Ahh:
>    git name-rev --tags 73e92e51b7969ef5477
> 73e92e51b7969ef5477 tags/v3.1-rc1~131^2~16
>
> I didn't know about the '--tags' option before.  It helps.

Unfortunately it's a trap, though. :)  Sometimes there are two names
for a rev, and git name-rev doesn't necessarily give the name based on
the oldest tag.  Also, sometimes commits are backported.

I use name-rev to get a rough idea and then

    git log 73e92e51b7969ef5477 ^v3.0
    git log --grep='known bad block' v2.6.39..stable/linux-3.0.y

to confirm my guess.
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to