From: "Michael Smith" <msmith@cbnco.com>
To: openembedded-devel@lists.openembedded.org
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: Examples of srctree and gitver
Date: Sun, 30 May 2010 16:37:17 -0400 [thread overview]
Message-ID: <9224472599.959704637@cbnco.com> (raw)
In-Reply-To: <A24693684029E5489D1D202277BE894455A0F301@dlee02.ent.ti.com>
> From: Ambrose, Martin <martin@ti.com>
> Looking at the class I see
> ver = popen(["git", "describe", "--tags"], cwd=path)
> Normally I work on a named branch so the PV here becomes the capitalized
> branch name. My preference would be the shortened commit id which is the
> fallback option above. I guess no way to get this functionality unless I
> either don't work a branch or locally modify gitver.bbclass.
I think if you tag a commit somewhere on your branch, you'll get
<tag>-<count>-<shortened commit ID> as your version for all future commits.
Mike
prev parent reply other threads:[~2010-05-30 20:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-30 15:07 Examples of srctree and gitver Ambrose, Martin
2010-05-30 16:16 ` Chris Larson
2010-05-30 19:26 ` Ambrose, Martin
2010-05-30 19:49 ` Chris Larson
2010-05-31 22:47 ` Ambrose, Martin
2010-06-01 13:36 ` Michael Smith
2010-06-01 14:33 ` Chris Larson
2010-06-02 21:47 ` Ambrose, Martin
2010-06-03 13:55 ` Ambrose, Martin
2010-05-30 16:27 ` Michael Smith
2010-05-30 17:10 ` Chris Larson
2010-05-30 19:26 ` Ambrose, Martin
2010-05-30 20:37 ` Michael Smith [this message]
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=9224472599.959704637@cbnco.com \
--to=msmith@cbnco.com \
--cc=openembedded-devel@lists.openembedded.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