mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.util: prevent diff tool lookups when VDIFF_TOOL is set
This commit is contained in:
parent
9bb3a5b3a3
commit
c1f2c570bc
@ -8,6 +8,9 @@ import time
|
||||
pub fn find_working_diff_command() ?string {
|
||||
env_difftool := os.getenv('VDIFF_TOOL')
|
||||
env_diffopts := os.getenv('VDIFF_OPTIONS')
|
||||
if env_difftool != '' {
|
||||
return '$env_difftool $env_diffopts'
|
||||
}
|
||||
mut known_diff_tools := []string{}
|
||||
if env_difftool.len > 0 {
|
||||
known_diff_tools << env_difftool
|
||||
|
Loading…
x
Reference in New Issue
Block a user