From 19551ec235b0b4dc9d3e1bd7575709b69ee44a0e Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Tue, 16 Jul 2024 01:29:20 -0600 Subject: 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 --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build.rs') 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) ); } -- cgit v1.2.3