* Is it possible get the tag name of working copy in Git?
@ 2015-03-13 7:08 chen chang
2015-03-13 9:36 ` Torsten Bögershausen
0 siblings, 1 reply; 3+ messages in thread
From: chen chang @ 2015-03-13 7:08 UTC (permalink / raw)
To: git
I want to use make file auto generate the revision number of working
copy from the tag name in git.
So as questioned in subject, I have tried to use 'git describe', it
works well in most case, and the output is good match my requirement.
Problem is: when there are multiple tags on same one commit, if check
out one of these tag, the 'git describe' only be able to return the
most new created tag name in that commit, instead of the real checked
out tag.
Seems 'git-describe' capture the most recent tag name by create sequence.
I expect add an argument to 'git-describe' to make it get the most
recent tag name according to checkout status when multiple tags on one
commit.
Is there any suggestion? Thanks!
------------------------------
Chen Chang
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-13 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13 7:08 Is it possible get the tag name of working copy in Git? chen chang
2015-03-13 9:36 ` Torsten Bögershausen
2015-03-13 17:00 ` Stefan Beller
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).