git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Dressel <MichaelTiloDressel@t-online.de>
To: git@vger.kernel.org
Subject: git describe
Date: Mon, 2 Jun 2008 19:25:48 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.1.10.0806021908210.3330@pollux> (raw)

Hi,

git describe does not seam to apply the pattern given by the --match 
option in case the tag is a soft one. Is that done intentionally?

In addition I wonder if it was possible to introduce an option that would 
show all tags of a given commit, at least when --exact-match is specified 
too?

At the moment I'm using git log --decorate in a script to get the above
result. Part of the script looks something like this:


  		mytags=`git log --pretty=oneline --max-count=1\
  			--decorate $commit\
  		| awk '
/.*\/tags\/V1\..*/ {
  	sub("^.*[(]","")
  	gsub("tag: ","")
  	sub("[)].*","")
  	gsub(" ","")


  	split($0, tl, ",")
  	for (var in tl)
  	{
  		if (tl[var] ~ /refs\/tags/ && tl[var] ~ V1){
  			sub("refs/tags/","",tl[var])
  			print tl[var]
  		}
  	}
}
'`

Since that is quite clumsy. I would like to use git describe which
almost does what I need.

Cheers,
Michael

                 reply	other threads:[~2008-06-02 19:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=alpine.LNX.1.10.0806021908210.3330@pollux \
    --to=michaeltilodressel@t-online.de \
    --cc=git@vger.kernel.org \
    /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).