Skip to content

Commit

Permalink
Cmder: speed up clink.lua git prompt for Cmder 1.3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Apr 4, 2019
1 parent 1464543 commit b61134f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions win/cmder_mini/vendor/clink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ end
-- @return {bool}
---
local function get_git_status()
local file = io.popen("git --no-optional-locks status --porcelain 2>nul")
local file = io.popen("git --no-optional-locks status --porcelain --ignore-submodules 2>nul")
for line in file:lines() do
file:close()
return false
Expand All @@ -234,7 +234,7 @@ end
-- @return {bool} indicating true for conflict, false for no conflicts
---
function get_git_conflict()
local file = io.popen("git diff --name-only --diff-filter=U 2>nul")
local file = io.popen("git diff --name-only --diff-filter=U --ignore-submodules 2>nul")
for line in file:lines() do
file:close()
return true;
Expand Down

0 comments on commit b61134f

Please sign in to comment.