[Cryptech Tech] Versioning

Peter Stuge peter at stuge.se
Wed Jul 13 21:02:46 UTC 2016


Paul Selkirk wrote:
> PACKAGE_VERSION  := 2.0.$(shell git show -s --format=%ct HEAD)

For later I'd suggest: git describe --dirty --tags --abbrev=6 --always


> So that would be the timestamp (unix epoch) of the last commit on
> user/sra/alpha-releng/omnibus.

I find the commit id itself a fair bit more useful than a timestamp,
because I can look up exactly what repository state that commit
represents, which is difficult with just the timestamp.


//Peter


More information about the Tech mailing list