On Tue, Jul 2, 2013 at 10:46 AM, Ramkumar Ramachandra
<artag...@gmail.com> wrote:
> Sedat Dilek wrote:
>> for my Linux-kernel build-script I am searching for a reliable check
>> of getting the ***latest*** version.
>   $ git describe HEAD
> If you want a sorted list of tags,
>   $ git for-each-ref --sort=taggerdate --format="%(refname:short)" refs/tags
> Are you looking for something else?

Hi Ramukar,

Thanks for the quick answer!

Cool, this seems to keep version-chronology!

$ git for-each-ref --sort=taggerdate --format="%(refname:short)"
refs/tags | grep ^'v3.[0-9]*' | tail -1

$ git for-each-ref --sort=taggerdate --format="%(refname:short)"
refs/tags | grep ^'next-[0-9]*' | tail -1

Another question if I may ask:

Sometimes I need to bisect a previous Linux-Next version.

What I am doing is to have the latest Linux-v3.x.y(-rcX) as stable base.

$ git checkout upstream
$ git checkout -b Linux-v3.10-rc7 v3.10-rc7

Afterwards I checkout the latest Linux-Next remote repository with all
its (new) tags (here: next-20130628)

$ git checkout -b Linux-Next-v20130628
$ git pull linux-next --tags next-20130628

How do I get the latest available linux-version in the downgraded
(current) Linux-Next local repository (example: I have parallelly
Linux-Next-v20130702 and Linux-Next-v20130628)?
If I have all -next tags merged-in, I will get always today's 'next-20130702'.
Due to my poor git skillz I do this manually for git-bisect sessions.

Thanks again, you helped me a lot with the above!

- Sedat -
To unsubscribe from this list: send the line "unsubscribe git" 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