[lttng-dev] [lttng-tools PATCH] Correct LTTng version
Josh Stone
jistone at redhat.com
Tue Mar 12 17:54:30 EDT 2013
On 03/12/2013 02:38 PM, David Goulet wrote:
> Yup that would be ideal actually!
>
> Master is not 2.0 nor 2.1 so having something like
> "git-FIRST_8_BYTES_OF_HEAD_COMMIT" would be very useful.
You might like this script we use with systemtap:
http://sourceware.org/git/gitweb.cgi?p=systemtap.git;a=blob;f=git_version.sh
That gives us a header which defines a git version string such as
"release-2.1-78-g3d0a328", in the style of "git describe".
More information about the lttng-dev
mailing list