fix: do not match ignored when not showing untracked files (#996)

fixes #985
This commit is contained in:
Kiyan
2022-02-17 10:08:07 +01:00
committed by GitHub
parent bbad18ba51
commit dbf172c67a

View File

@@ -42,7 +42,7 @@ end
function Runner:_getopts(stdout_handle) function Runner:_getopts(stdout_handle)
local untracked = self.list_untracked and '-u' or nil local untracked = self.list_untracked and '-u' or nil
local ignored = self.list_ignored and '--ignored=matching' or '--ignored=no' local ignored = (self.list_untracked and self.list_ignored) and '--ignored=matching' or '--ignored=no'
return { return {
args = {"--no-optional-locks", "status", "--porcelain=v1", ignored, untracked}, args = {"--no-optional-locks", "status", "--porcelain=v1", ignored, untracked},
cwd = self.project_root, cwd = self.project_root,