Skip to content

Commit

Permalink
Fix git branch name colouring
Browse files Browse the repository at this point in the history
Colouring fixed when there are some changes in a branch
  • Loading branch information
Łukasz Papierz authored and lpapierz committed Jun 28, 2016
1 parent ed3d661 commit 551cff1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vendor/clink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 551cff1

Please sign in to comment.