Merge pull request #1011 from MoFo88/git_branch_colouring

Fix git branch colouring
This commit is contained in:
Benjamin Staneck 2016-06-28 18:37:34 +02:00 committed by GitHub
commit 14a6e5953c

9
vendor/clink.lua vendored
View File

@ -208,11 +208,10 @@ end
-- @return {bool}
---
function get_git_status()
local file = io.popen("git diff --quiet --ignore-submodules HEAD 2>nul")
-- This will get a table with some return stuff
-- rc[3] will be the signal, 0 or 1
local rc = {file:close()}
return rc[3] == 0
for line in io.popen("git status --porcelain 2>nul"):lines() do
return false
end
return true
end
function git_prompt_filter()