{"thread":{"id":"27082","subject":"Re: small git lesson [Was: Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?]","startedAt":"2011-04-13T09:36:08Z","lastAt":"2011-04-13T09:36:08Z","messageCount":1,"participants":["Uwe Kleine-König"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"165731","messageId":"20110413093608.GO18850@pengutronix.de","threadId":"27082","inReplyTo":"m339lm8r31.fsf@redhat.com","subject":"Re: small git lesson [Was: Re: Revert 737a3bb9416ce2a7c7a4170852473a4fcc9c67e8 ?]","fromName":"Uwe Kleine-König","fromEmail":"u.kleine-koenig@pengutronix.de","sentAt":"2011-04-13T09:36:08Z","receivedAt":"2011-04-13T09:36:08Z","isPatch":false,"sender":{"key":"u.kleine-koenig@pengutronix.de","avatar":"https://gravatar.com/avatar/354b5e3ceb2806a2f1e1e382ac29ddbdad18288654da62b61eb13583a857eee7?d=mp&s=160"},"body":"Hello,\n\nOn Wed, Apr 13, 2011 at 10:59:14AM +0200, Andreas Schwab wrote:\n> Uwe Kleine-König <u.kleine-koenig@pengutronix.de> writes:\n> \n> > $ git name-rev --refs=refs/tags/v2.6\\* 69a07f0b117a40fcc1a479358d8e1f41793617f2\n> > 69a07f0b117a40fcc1a479358d8e1f41793617f2 tags/v2.6.39-rc2~3^2~43^2~4\n> >\n> > so it was introduced just before -rc2.\n> \n> $ git tag --contains 69a07f0b117a40fcc1a479358d8e1f41793617f2\n> v2.6.39-rc1\n> v2.6.39-rc2\nhuh, I thought git name-rev prefers old[1] refs (similar to describe\nprefering newer).\n\n$ for rc in 1 2; do git name-rev --refs=refs/tags/v2.6.39-rc$rc 69a07f0b1; done\n69a07f0b1 tags/v2.6.39-rc1~79^2~31^2~4\n69a07f0b1 tags/v2.6.39-rc2~3^2~43^2~4\n\nI would prefer the v2.6.39-rc1 name even though it's nearer[1] at\nv2.6.39-rc2.\n\nIf it should stay as is, what is the best way to find out the oldest\ntag?\n \nBest regards\nUwe\n\n[1] as in minimizing\n\n\tgit rev-list 69a07f0b117a..$ref | wc -l\n\n(v2.6.39-rc1 -> 21281; v2.6.39-rc2 -> 21608)\n\n[2] as in minimizing the number of traversing a parent link.\n\n-- \nPengutronix e.K.                           | Uwe Kleine-König            |\nIndustrial Linux Solutions                 | http://www.pengutronix.de/  |\n"}]}