[ipxe-devel] show git version
Robin Smidsrød
robin at smidsrod.no
Fri Jul 6 15:16:04 UTC 2012
On 05.07.2012 11:20, Christian Hesse wrote:
> This brings a new idea to my mind - could be useful to have the git version
> printed when booting.
I'd prefer to use the abbreviated/short SHA1 (7 digits) that is used
elsewhere in git to identify the checkout. You can easily get the SHA1
associated with HEAD like this:
git rev-parse --short HEAD
I think that should give more accurate info than 'git describe --tags'.
-- Robin
More information about the ipxe-devel
mailing list