Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
exclude .svn and .git from the pattern inc() function #8
This is a weird bug. On Windows systems, if this project is included in an SVN project, the inc() function will parse the cached file originals in the .svn folder instead of locally modified files. As a result, any atoms/molecules/organisms loaded through the inc() function won't display any local modifications.
This commit adds an Exclude Filter to the recursive directory scanner so that .svn and .git folders are excluded. It also makes it easier to add additional path-based filters for excluding from the inc() scanner.
This bug won't show up on a Mac (and presumably other Unix environments), because the inc() function is doing lazy matching to the first found result. On a Windows filesystem, .svn folder sorts before others, whereas on OSX the .svn folder will sort after regular files.