diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-13 18:09:30 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-05-13 18:09:30 +0200 |
| commit | ed56a7ca102339d2b711ec5ca9529a02bd621a7b (patch) | |
| tree | 82c49f4b61e8a69ed1549b99fe4384b6257b1f04 /src/bug_report.cpp | |
| parent | 0a12c464abcc8e5bf2cc47204bd2fe74e461d443 (diff) | |
Parse odin version date out of HEAD commit if available
Diffstat (limited to 'src/bug_report.cpp')
| -rw-r--r-- | src/bug_report.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bug_report.cpp b/src/bug_report.cpp index 0a617fe39..32210c23e 100644 --- a/src/bug_report.cpp +++ b/src/bug_report.cpp @@ -667,8 +667,14 @@ gb_internal void print_bug_report_help() { gb_printf("-nightly"); #endif + String version = {}; + #ifdef GIT_SHA - gb_printf(":%s", GIT_SHA); + version.text = cast(u8 *)GIT_SHA; + version.len = gb_strlen(GIT_SHA); + if (version != "") { + gb_printf(":%.*s", LIT(version)); + } #endif gb_printf("\n"); |