1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v version: show only vhash, when vhash and current_hash are the same

This commit is contained in:
Delyan Angelov 2020-04-05 14:47:01 +03:00
parent 35fab2bb7b
commit 44a271d9e9

View File

@ -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}'
}