In my git repo, I have imported some other project as a submodule. So far, so good. However, the maintainers of the imported project are a bit sloppy about their .gitignore files. So, after building the imported project, git status (within the submodule) lists a ton of untracked files. And consequently, git status in my own project says:
modified: <submodule> (untracked content)
My question is: Is there any way of telling git to ignore these untracked files without fixing the upstream .gitignore files?
I'm fully aware that the likely answer is "no", and I have seen this SO question that tells me that it is not possible to ignore changes to tracked files. Which makes total sense to me, independent of the question whether the file is in a submodule or not. However, I'm only concerned with ignoring untracked files, so I think there is a slight chance that there is a good solution for my question.