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:
parent
35fab2bb7b
commit
44a271d9e9
@ -21,6 +21,9 @@ pub fn vhash() string {
|
|||||||
pub fn full_hash() string {
|
pub fn full_hash() string {
|
||||||
build_hash := vhash()
|
build_hash := vhash()
|
||||||
current_hash := githash(false)
|
current_hash := githash(false)
|
||||||
|
if build_hash == current_hash {
|
||||||
|
return build_hash
|
||||||
|
}
|
||||||
return '${build_hash}.${current_hash}'
|
return '${build_hash}.${current_hash}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user