fix: do not match ignored when not showing untracked files (#996)
fixes #985
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user