mirror of
https://github.com/cmderdev/cmder.git
synced 2025-03-13 06:04:36 +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}
|
-- @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…
x
Reference in New Issue
Block a user