[Discuss] A couple of git questions regarding tags
Jerry Feldman
gaf at blu.org
Wed Oct 26 13:23:44 EDT 2011
I've been tagging my commits, and now I want to use that in my code. The
'git describe' command does this nicely:
In my sandbox I get '1.0.3-1-gf9a4796', but if I push (actually pull)
that into another repository I get '1.0.3'.
I would like to be able to display the version as well as the commit so
if someone points out a bug I know exactly. The describe in my sandbox
gives me pretty much what I want, and so does the 1.0.3. But I would
prefer the commit number (9a4796). Certainly I can parse the log to get
the current commit number.
The second question is that I would like a script that will do a git
commit as well as update the tag. I can either write this myself in
bash, tcl or python, or find a script out there that already does it.
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id:3BC1EB90
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66 C0AF 7CEA 30FC 3BC1 EB90
More information about the Discuss
mailing list