including git commit in version

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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) 7.10.1.20151205-git-gdb-7.10.1-release-2-g3e96ddbffb05

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.
-mike
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWkAjRAAoJEEFjO5/oN/WBRmMQALHrxyNACdZExALDDXebHQLK
AOaSijiZrM4IEPVLLxoXLUSt6k6ofXg3xQLoRVrKv8ZBS46eT2IvAWZNreueReOj
ZjdBXhPqVukYnNlYghT6wnyOFcPqTLcRJ76Qg3CgUcVfKEAaNpjJBcujVHAidPMV
mV8JPtNw8fU6gG65GyR3McEMQzGcaYPTsozJrb6OLBZTY0nD10TY5oxDPzR1htVI
fy8sxsyVsd0CS+vNR7J9Rm3eDi+CQ/o/srfu7Z08gfFqSFWasIMQjbwKLikXnWeO
OssAYubEh7fJYMTjbRjKvvO/PfEqq+jfjDOrKaw1ZMkGDXaBseLenoM7UOrXJV0q
eqxvD1U8PGmYGYhN7YBX2u0HxNf0UX3xGi+MTjIN5G4P64jXrPdecJSCxKYbF/t/
KgahbikxYQppTh830BjoYSSErJIT9xiF4hnig/PqwWKIjIqKRrUGdWrQkzfpr4a4
s8Wg/nzg7evnR3HPZLi5OHZuVKVihILj+os8DSQa7meHdITOL+tMTZEELTjSIlRs
KbZ9YIzQLPaBTX61NnnPgAI9D6c0HZlDrMgcjLTqUQ4YHI00k5uwqx1IeJ05RV6r
Sbx7XZ88Q0rlIiAwYwLin/0j/SuvzOSt35Y4sUqN3a0hRvfzv8w2NtkbhSbfg6Tv
t9NOGH86SIouqueB9xBz
=978y
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.