git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Julian Phillips <julian@quantumfyre.co.uk>
To: "Uwe Kleine-König" <ukleinek@informatik.uni-freiburg.de>
Cc: git@vger.kernel.org
Subject: Re: name-rev does not show the shortest path
Date: Fri, 24 Aug 2007 16:21:46 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0708241615040.7313@reaper.quantumfyre.co.uk> (raw)
In-Reply-To: <20070824125230.GA12030@informatik.uni-freiburg.de>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1599 bytes --]

On Fri, 24 Aug 2007, Uwe Kleine-König wrote:

> Hello Julian,
>
> Julian Phillips wrote:
>> On Thu, 23 Aug 2007, Uwe Kleine-König wrote:
>>> 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.
>>
>> git describe --contains 0567a0c022d5b
>>
>> probably a 1.5.3 feature? (certainly doesn't exist in 1.5.2.2)
> That command says v2.6.22~1686^2~1^3~5, too.  That is, it doesn't use
> the "older" v2.6.22-rc1 tag as a basis.

From a quick look at the code, that's not surprising, it runs "git 
name-rev --name-only --tags" under the bonnet - so not helpful at all, 
sorry.

So now I wonder how useful --contains really is ... I would have expected 
to always get the "closest" tag.  ~1009^2~1^3~5 seems closer than 
~1686^2~1^3~5 to me ... ho hum.

-- 
Julian

  ---
And that's the way it is...
 		-- Walter Cronkite

  reply	other threads:[~2007-08-24 15:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0708241615040.7313@reaper.quantumfyre.co.uk \
    --to=julian@quantumfyre.co.uk \
    --cc=git@vger.kernel.org \
    --cc=ukleinek@informatik.uni-freiburg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).