Skip to content

Conversation

@Katze719
Copy link
Member

@Katze719 Katze719 commented Dec 3, 2025

  • 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.

- 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.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the Version struct in get_version.h by adding Git-related versioning information alongside the existing semantic version fields (major, minor, patch). The new fields provide comprehensive build-time versioning metadata including commit hashes, commit date, branch name, and a complete version string. This change aligns with the project's recent adoption of the cmake-git-versioning tool (configured in CMakeLists.txt) which generates these additional version constants at build time.

Key changes:

  • Added five new const char* fields to the Version struct for Git metadata (commit hashes, date, branch, version string)
  • Applied consistent alignment formatting to all struct fields following the project's clang-format conventions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Katze719 Katze719 merged commit 0aed0fa into main Dec 3, 2025
@Katze719 Katze719 deleted the improve-version-struct-for-better-debugging branch December 3, 2025 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants