summaryrefslogtreecommitdiff
path: root/src/data/compile_info.rs.template
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-03 21:05:18 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-03 21:05:18 +0800
commit2e16a556e277035225d02d9a62c2da699235de36 (patch)
tree6e81b9251c71d31620f60381b13af53888d216a0 /src/data/compile_info.rs.template
parent7f3e51cf19e23292ab2087f521408c70c92f12fe (diff)
Add Git branch and commit info to compile info
- Include branch and commit hash in compile info display - Add build script functions to extract git metadata - Update export scripts to force rebuilds when needed - Extend share command with placeholder implementations
Diffstat (limited to 'src/data/compile_info.rs.template')
-rw-r--r--src/data/compile_info.rs.template4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data/compile_info.rs.template b/src/data/compile_info.rs.template
index 7720d2b..b65055b 100644
--- a/src/data/compile_info.rs.template
+++ b/src/data/compile_info.rs.template
@@ -5,6 +5,8 @@ pub struct CompileInfo {
pub toolchain: String,
pub cli_version: String,
+ pub build_branch: String,
+ pub build_commit: String,
}
impl Default for CompileInfo {
@@ -15,6 +17,8 @@ impl Default for CompileInfo {
platform: "{platform}".to_string(),
toolchain: "{toolchain}".to_string(),
cli_version: "{version}".to_string(),
+ build_branch: "{branch}".to_string(),
+ build_commit: "{commit}".to_string(),
}
}
}