git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* name-rev does not show the shortest path
@ 2007-08-23 10:38 Uwe Kleine-König
  2007-08-24 11:55 ` Julian Phillips
  2007-08-27 11:37 ` [PATCH] name-rev: Fix non-shortest description Johannes Schindelin
  0 siblings, 2 replies; 13+ messages in thread
From: Uwe Kleine-König @ 2007-08-23 10:38 UTC (permalink / raw)
  To: git

Hello,

I want to check to which kernel version I need to upgrade to get a
certain feature.  For my case it was introduced in 0567a0c022d5b.

	zeisberg@cassiopeia:~/gsrc/linux-2.6$ rev=0567a0c022d5b343370a343121f38fd89925de55

	zeisberg@cassiopeia:~/gsrc/linux-2.6$ git name-rev --tags $rev
	0567a0c022d5b343370a343121f38fd89925de55 tags/v2.6.22~1686^2~1^3~5

	zeisberg@cassiopeia:~/gsrc/linux-2.6$ git name-rev --refs=*-rc1 $rev
	0567a0c022d5b343370a343121f38fd89925de55 tags/v2.6.22-rc1~1009^2~1^3~5

I don't now the underlaying algorithm, maybe it's to get a short string?

Anyhow I want to know the earliest tag that includes this patch?  Is
there something I missed?

I remember there was a similar discussion regarding describe.

BTW: gitk does the right thing, it says:

	Follows: v2.6.21-rc7
	Precedes: v2.6.22-rc1

(called with 

	zeisberg@cassiopeia:~/gsrc/linux-2.6$ gitk 0567a0c022d5b343370a343121f38fd89925de55^..0567a0c022d5b343370a343121f38fd89925de55
)

I didn't check how it does that though.

Best regards
Uwe

-- 
Uwe Kleine-König

exit vi, lesson I:
: q ! <CR>

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-08-27 19:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23 10:38 name-rev does not show the shortest path Uwe Kleine-König
2007-08-24 11:55 ` Julian Phillips
2007-08-24 12:52   ` Uwe Kleine-König
2007-08-24 15:21     ` Julian Phillips
2007-08-24 18:33       ` Junio C Hamano
2007-08-25 15:04         ` Johannes Schindelin
2007-08-26  9:23           ` Jeff King
2007-08-26 15:38             ` Johannes Schindelin
2007-08-27  9:24               ` Jeff King
2007-08-27  9:57                 ` Johannes Schindelin
2007-08-27 11:18                   ` Johannes Schindelin
2007-08-27 11:37 ` [PATCH] name-rev: Fix non-shortest description Johannes Schindelin
2007-08-27 19:27   ` 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).