Skip to content

Commit b8b2c3c

Browse files
sofarclaude
andcommitted
Include git short ref in firmware version string
Shows "1.16.0-abcdef12" instead of "1.16.0" in the About screen and BLE device info, making it easy to identify which build is running. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8020a7d commit b8b2c3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Version.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ namespace Pinetime {
1717
static constexpr uint32_t minor = @PROJECT_VERSION_MINOR@;
1818
static constexpr uint32_t patch = @PROJECT_VERSION_PATCH@;
1919
static constexpr const char* commitHash = "@PROJECT_GIT_COMMIT_HASH@";
20-
static constexpr const char* versionString = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@";
20+
static constexpr const char* versionString = "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@.@PROJECT_VERSION_PATCH@-@PROJECT_GIT_COMMIT_HASH@";
2121
};
2222
}

0 commit comments

Comments
 (0)