diff options
author | Rory Dudley | 2024-07-16 01:29:20 -0600 |
---|---|---|
committer | Rory Dudley | 2024-07-16 01:31:52 -0600 |
commit | 19551ec235b0b4dc9d3e1bd7575709b69ee44a0e (patch) | |
tree | b1d61f1f9a3cb0185db93a16c31a4d9bff2f98e1 | |
parent | b48f8f74cf12c174a0d2e72307616a77e6635ae2 (diff) | |
download | dwarvish-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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) ); } |