[0.1.17] GIT_HASH: just the short hash (and -dirty), without the outdated v0.1.0 tag

This commit is contained in:
Musa Mahmood 2026-10-14 12:44:09 +01:00
parent be9ad707c4
commit a88d5da4dd

View File

@ -328,7 +328,7 @@ add_build_constants :: (w: Workspace, optimized: bool) {
} }
GIT_HASH :: #run -> string { GIT_HASH :: #run -> string {
result, revision := run_command("git", "describe", "--always", "--dirty", capture_and_return_output = true); result, revision := run_command("git", "describe", "--always", "--dirty", "--exclude=*", capture_and_return_output = true);
if revision return trim(revision); if revision return trim(revision);
return "-"; return "-";
} }