including git commit in version

Mike Frysinger
Fri Jan 8 19:07:00 GMT 2016

On 08 Jan 2016 12:02, Kieran Bingham wrote:
> I'm currently carrying around a local patch on my development branches to
> add the SHA hash to the version.
> Would this be of use to propose to gdb-patches?

i had that in the back of my mind.  i'd be ok with this sort of thing.

> It's much more useful to be able to tie into an explicit commit reference
> than just a date.

since the date is updated by a script, that can be tied to a commit in
a close range, so it's not that bad.  it's not like the datestamp is
coming from `date` itself.

> Produces:
> > armv7-linux-gdb -v
> > GNU gdb (GDB)

i think this is only when you're on a branch ?  master doesn't
include all that.  it is verbose, but i'm fine with it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <>

More information about the Gdb mailing list