mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
ignore warning messages about files when obtaining file statuses
This commit is contained in:
committed by
github-actions[bot]
parent
42479a75af
commit
7ebb8343d1
@ -242,6 +242,10 @@ func (c *GitCommand) GetStatusFiles(opts GetStatusFileOptions) []*File {
|
|||||||
files := []*File{}
|
files := []*File{}
|
||||||
|
|
||||||
for _, statusString := range statusStrings {
|
for _, statusString := range statusStrings {
|
||||||
|
if strings.HasPrefix(statusString, "warning") {
|
||||||
|
c.Log.Warning(statusString)
|
||||||
|
continue
|
||||||
|
}
|
||||||
change := statusString[0:2]
|
change := statusString[0:2]
|
||||||
stagedChange := change[0:1]
|
stagedChange := change[0:1]
|
||||||
unstagedChange := statusString[1:2]
|
unstagedChange := statusString[1:2]
|
||||||
|
Reference in New Issue
Block a user