From 44a271d9e99cd94f23df73c94ac3dba86f836335 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 5 Apr 2020 14:47:01 +0300 Subject: [PATCH] v version: show only vhash, when vhash and current_hash are the same --- vlib/v/util/util.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/util/util.v b/vlib/v/util/util.v index af49f7fa15..182d0da19c 100644 --- a/vlib/v/util/util.v +++ b/vlib/v/util/util.v @@ -21,6 +21,9 @@ pub fn vhash() string { pub fn full_hash() string { build_hash := vhash() current_hash := githash(false) + if build_hash == current_hash { + return build_hash + } return '${build_hash}.${current_hash}' }