* Re: small git lesson [Was: Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?]
[not found] ` <m339lm8r31.fsf@redhat.com>
@ 2011-04-13 9:36 ` Uwe Kleine-König
0 siblings, 0 replies; only message in thread
From: Uwe Kleine-König @ 2011-04-13 9:36 UTC (permalink / raw)
To: Andreas Schwab, Johannes Schindelin; +Cc: git
Hello,
On Wed, Apr 13, 2011 at 10:59:14AM +0200, Andreas Schwab wrote:
> Uwe Kleine-König <u.kleine-koenig@pengutronix.de> writes:
>
> > $ git name-rev --refs=refs/tags/v2.6\* 69a07f0b117a40fcc1a479358d8e1f41793617f2
> > 69a07f0b117a40fcc1a479358d8e1f41793617f2 tags/v2.6.39-rc2~3^2~43^2~4
> >
> > so it was introduced just before -rc2.
>
> $ git tag --contains 69a07f0b117a40fcc1a479358d8e1f41793617f2
> v2.6.39-rc1
> v2.6.39-rc2
huh, I thought git name-rev prefers old[1] refs (similar to describe
prefering newer).
$ for rc in 1 2; do git name-rev --refs=refs/tags/v2.6.39-rc$rc 69a07f0b1; done
69a07f0b1 tags/v2.6.39-rc1~79^2~31^2~4
69a07f0b1 tags/v2.6.39-rc2~3^2~43^2~4
I would prefer the v2.6.39-rc1 name even though it's nearer[1] at
v2.6.39-rc2.
If it should stay as is, what is the best way to find out the oldest
tag?
Best regards
Uwe
[1] as in minimizing
git rev-list 69a07f0b117a..$ref | wc -l
(v2.6.39-rc1 -> 21281; v2.6.39-rc2 -> 21608)
[2] as in minimizing the number of traversing a parent link.
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-13 9:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BANLkTimAJ-s_3A3L1YGfoFLmd4bpu2jWVA@mail.gmail.com>
[not found] ` <20110406204327.GA11148@iram.es>
[not found] ` <1302185075.24704.143.camel@thor.local>
[not found] ` <20110411133128.GA24344@iram.es>
[not found] ` <1302535963.24704.268.camel@thor.local>
[not found] ` <20110412113033.GA16649@iram.es>
[not found] ` <1302608770.27054.36.camel@thor.local>
[not found] ` <20110413080204.GA3871@iram.es>
[not found] ` <20110413081246.GK18850__3180.67204575545$1302682420$gmane$org@pengutronix.de>
[not found] ` <m339lm8r31.fsf@redhat.com>
2011-04-13 9:36 ` small git lesson [Was: Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?] Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).