[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Display less characters from the commit hash
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: [PATCH] Display less characters from the commit hash
- From: Rory Dudley <rory@xxxxxxx>
- Reply-to: rory@xxxxxxx
- Date: Tue, 16 Jul 2024 01:29:20 -0600
- To: lore@xxxxxxxxxxxx
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@xxxxxxx> --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); } -- cheers!~ Rory
Archive administrator: postmaster AT dwarvish DOT org