* git describe
@ 2008-06-02 17:25 Michael Dressel
0 siblings, 0 replies; only message in thread
From: Michael Dressel @ 2008-06-02 17:25 UTC (permalink / raw
To: git
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-02 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02 17:25 git describe Michael Dressel
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).