From 2855a699a1742bca133028e738de57d0571f3e3b Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Sun, 22 Mar 2015 00:42:01 +0300 Subject: [PATCH] Removes error messages when getting repo status When `get_git_status` fails the inner `os.execute` call print error message to console. This removes all error messages fro such cases. --- config/cmder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cmder.lua b/config/cmder.lua index e783fd1..b63fe95 100644 --- a/config/cmder.lua +++ b/config/cmder.lua @@ -136,7 +136,7 @@ end -- @return {bool} --- function get_git_status() - return os.execute("git diff --quiet --ignore-submodules HEAD") + return os.execute("git diff --quiet --ignore-submodules HEAD 2>nul") end function git_prompt_filter()