mirror of
https://github.com/cmderdev/cmder.git
synced 2025-02-14 09:20:21 +08:00
parent
5e703796c9
commit
a71c6a50ad
14
vendor/clink.lua
vendored
14
vendor/clink.lua
vendored
@ -210,8 +210,10 @@ end
|
||||
local function get_git_status()
|
||||
local file = io.popen("git --no-optional-locks status --porcelain 2>nul")
|
||||
for line in file:lines() do
|
||||
file:close()
|
||||
return false
|
||||
end
|
||||
file:close()
|
||||
|
||||
return true
|
||||
end
|
||||
@ -221,9 +223,12 @@ end
|
||||
-- @return {bool}
|
||||
---
|
||||
local function get_hg_status()
|
||||
for line in io.popen("hg status -0"):lines() do
|
||||
local file = io.popen("hg status -0")
|
||||
for line in file:lines() do
|
||||
file:close()
|
||||
return false
|
||||
end
|
||||
file:close()
|
||||
|
||||
return true
|
||||
end
|
||||
@ -232,10 +237,13 @@ end
|
||||
-- Get the status of working dir
|
||||
-- @return {bool}
|
||||
---
|
||||
local function get_svn_status()
|
||||
for line in io.popen("svn status -q"):lines() do
|
||||
function get_svn_status()
|
||||
local file = io.popen("svn status -q")
|
||||
for line in file:lines() do
|
||||
file:close()
|
||||
return false
|
||||
end
|
||||
file:close()
|
||||
|
||||
return true
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user