summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRory Dudley2024-07-16 01:29:20 -0600
committerRory Dudley2024-07-16 01:31:52 -0600
commit19551ec235b0b4dc9d3e1bd7575709b69ee44a0e (patch)
treeb1d61f1f9a3cb0185db93a16c31a4d9bff2f98e1
parentb48f8f74cf12c174a0d2e72307616a77e6635ae2 (diff)
downloaddwarvish-19551ec235b0b4dc9d3e1bd7575709b69ee44a0e.tar.gz
Display less characters from the commit hash
The '--version' option prints out the program version, along with the first 10 characters of the git commit hash, indicating at what commit the program was built. This patch reduces the length of the commit hash that gets embeded in the dwvsh binary to 7 characters, as that should be more than enought to determine the correct commit. Signed-off-by: Rory Dudley <rory@netc.lu>
-rw-r--r--build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index fef4321..a22f635 100644
--- a/build.rs
+++ b/build.rs
@@ -11,6 +11,6 @@ fn main() {
.to_string();
println!(
"cargo::rustc-env=DWVSH_BUILD={}",
- build.get(0..10).unwrap_or(&build)
+ build.get(0..7).unwrap_or(&build)
);
}