mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 08:49:08 +08:00
Fix git branch name colouring
Colouring fixed when there are some changes in a branch
This commit is contained in:
parent
84d44b18f2
commit
9c0ad9fd81
9
vendor/clink.lua
vendored
9
vendor/clink.lua
vendored
@ -208,11 +208,10 @@ end
|
|||||||
-- @return {bool}
|
-- @return {bool}
|
||||||
---
|
---
|
||||||
function get_git_status()
|
function get_git_status()
|
||||||
local file = io.popen("git diff --quiet --ignore-submodules HEAD 2>nul")
|
for line in io.popen("git status --porcelain 2>nul"):lines() do
|
||||||
-- This will get a table with some return stuff
|
return false
|
||||||
-- rc[3] will be the signal, 0 or 1
|
end
|
||||||
local rc = {file:close()}
|
return true
|
||||||
return rc[3] == 0
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function git_prompt_filter()
|
function git_prompt_filter()
|
||||||
|
Loading…
Reference in New Issue
Block a user