Skip to content

Commit 72ce86b

Browse files
committed
Enhance Version struct in get_version.h
- Added new fields to the Version struct, including commit hash (short and full), commit date, branch, and version string, to provide comprehensive versioning information. - This update improves the usability of version details within the codebase, aligning with recent enhancements in version management.
1 parent c510c22 commit 72ce86b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

include/cpp_core/interface/get_version.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ extern "C"
1111
{
1212
struct Version
1313
{
14-
int major = version::MAJOR;
15-
int minor = version::MINOR;
16-
int patch = version::PATCH;
14+
int major = version::MAJOR;
15+
int minor = version::MINOR;
16+
int patch = version::PATCH;
17+
const char *commit_hash_short = version::GIT_COMMIT_HASH_SHORT;
18+
const char *commit_hash_full = version::GIT_COMMIT_HASH_FULL;
19+
const char *commit_date = version::GIT_COMMIT_DATE;
20+
const char *branch = version::GIT_BRANCH;
21+
const char *version = version::VERSION;
1722
};
1823
} // namespace cpp_core
1924

0 commit comments

Comments
 (0)