Is there a possibility to ignore a whole folder based on its contents?
I have synced my whole documents folder to owncloud, but I want to exclude all git-repositories that are scattered within the documents-folder. I know I can exclude the .git-subfolders easily, but can I also ignore the whole folder containing my working copy based on the fact that it includes a .git-subfolder?
Steps to reproduce
1. Create a subfolder "project" in a synced folder
2. Initialize a git-repository in that subfolder
The whole subfolder "project" does not get synced to owncloud
I can ignore the .git-folder within "project" using ignored files editor (matching ".git"), but I would have to explicitly exclude "project" if I don't want it to get synced.