I use .stignore.sync and various .stignore files in subfolders to sync ignore settings across device, and #include them in .stignore. the .stignore.sync file is like this:
But sometimes the included files are synced later than the .stignore.sync, causing the whole folder to halt.
I think it’d be good if we have an optional include that just omit when the file not exist. e.g. #include? file. This way I can also set the default ignore pattern for all my folders to #include? .stignore.sync, sparing the chore to manually setup .stignore files.
I don’t remember exactly what the outcome was, but there was at least a proposed PR for making sure that included ignore files are synced first. That won’t help if it exists on no other device, but it would allow parsing the full ignore patterns instead of halting in error state. Sorry I can’t look for the code / PR right now.