Closed
Description
Description
This feature was requested several years ago on the Mbed forum.
It would be useful to be able to access project Git hash / commit metadata from source code, probably as #define
s, e.g. to output to console.
Example: https://stackoverflow.com/a/12368262
The primary thing to have is the commit hash. "Dirty" bool and tags would be nice to have. NB: I'm requesting metadata for the project, not for Mbed OS.
Hopefully you could make it work for Mbed CLI and exported projects.
Issue request type
[ ] Question
[X] Enhancement
[ ] Bug