git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: Add a "git-describe" command
Date: Sat, 24 Dec 2005 19:46:22 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0512241939490.14098@g5.osdl.org> (raw)
In-Reply-To: <7v4q4yq7f2.fsf@assigned-by-dhcp.cox.net>



On Sat, 24 Dec 2005, Junio C Hamano wrote:
>
> I wonder if some tags are more important than others (we may
> want to pick a signed tag that is a bit further down than an
> autogenerated snapshot -git47 tag), but that depends on the
> usage.  For bug hunting -git47 is more useful than sparsely done
> signed tags e.g. -rc4.

I considered just printing every tag I could reach, and then you could do 

	git-describe xyz | head -1

to get the closest one.

But then I decided that almost always, you just want the most recent one. 
But we could add a "--history" cmd line option to show all the reachable 
ones (or limit it to <n> tags shown or something)..

But there's already some logic to cull out uninteresting references (ie 
the "--all" flag enables all kinds of references, normally we only look at 
tags), and yes, we could also just add some other culling logic. For 
example, maybe we only care about annotated tags (ie real tag objects with 
a message, rather than just direct references to commits).

My real goal was to see a real meaningful version when I do "git 
--version". I just hate how it normally just says it's version "1.0.GIT", 
and I have no idea how new/old it really is.

			Linus

  reply	other threads:[~2005-12-25  3:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-24 21:50 Add a "git-describe" command Linus Torvalds
2005-12-24 22:13 ` Linus Torvalds
2005-12-25 19:21   ` M_
2005-12-28  0:42   ` Junio C Hamano
2005-12-28  2:05     ` Johannes Schindelin
2005-12-28  0:42   ` [PATCH 1/6] git-describe: really prefer tags only Junio C Hamano
2005-12-28  0:42   ` [PATCH 2/6] git-describe: use find_unique_abbrev() Junio C Hamano
2005-12-28  0:42   ` [PATCH 3/6] git-describe: --tags and --abbrev Junio C Hamano
2005-12-28  0:42   ` [PATCH 4/6] git-describe: still prefer annotated tag under --all and --tags Junio C Hamano
2005-12-28  0:42   ` [PATCH 5/6] git-describe: documentation Junio C Hamano
2005-12-28  0:42   ` [PATCH 6/6] Makefile: use git-describe to mark the git version Junio C Hamano
2005-12-25  1:42 ` Add a "git-describe" command Junio C Hamano
2005-12-25  3:46   ` Linus Torvalds [this message]
2005-12-25  9:44     ` Junio C Hamano

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

* 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.0512241939490.14098@g5.osdl.org \
    --to=torvalds@osdl.org \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /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.
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).