mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Merge pull request #1011 from MoFo88/git_branch_colouring
Fix git branch colouring
This commit is contained in:
commit
14a6e5953c
9
vendor/clink.lua
vendored
9
vendor/clink.lua
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user