From 72ce86b2fc759446a971ac582baf93a2761109b8 Mon Sep 17 00:00:00 2001 From: Katze719 Date: Tue, 2 Dec 2025 21:13:29 +0100 Subject: [PATCH 1/2] 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. --- include/cpp_core/interface/get_version.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/cpp_core/interface/get_version.h b/include/cpp_core/interface/get_version.h index b5312be..0be07b5 100644 --- a/include/cpp_core/interface/get_version.h +++ b/include/cpp_core/interface/get_version.h @@ -11,9 +11,14 @@ extern "C" { struct Version { - int major = version::MAJOR; - int minor = version::MINOR; - int patch = version::PATCH; + int major = version::MAJOR; + int minor = version::MINOR; + int patch = version::PATCH; + const char *commit_hash_short = version::GIT_COMMIT_HASH_SHORT; + const char *commit_hash_full = version::GIT_COMMIT_HASH_FULL; + const char *commit_date = version::GIT_COMMIT_DATE; + const char *branch = version::GIT_BRANCH; + const char *version = version::VERSION; }; } // namespace cpp_core From 6f1fd4c9b0176d74a3a918565c92aeb8099a0630 Mon Sep 17 00:00:00 2001 From: Katze719 <38188106+Katze719@users.noreply.github.com> Date: Wed, 3 Dec 2025 08:54:56 +0100 Subject: [PATCH 2/2] Update include/cpp_core/interface/get_version.h Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- include/cpp_core/interface/get_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cpp_core/interface/get_version.h b/include/cpp_core/interface/get_version.h index 0be07b5..8ee89c8 100644 --- a/include/cpp_core/interface/get_version.h +++ b/include/cpp_core/interface/get_version.h @@ -18,7 +18,7 @@ extern "C" const char *commit_hash_full = version::GIT_COMMIT_HASH_FULL; const char *commit_date = version::GIT_COMMIT_DATE; const char *branch = version::GIT_BRANCH; - const char *version = version::VERSION; + const char *version_string = version::VERSION; }; } // namespace cpp_core