diff --git a/docs/projectconf.rst b/docs/projectconf.rst index 0188e9b3..552d96f3 100644 --- a/docs/projectconf.rst +++ b/docs/projectconf.rst @@ -334,7 +334,7 @@ be applied in theirs order. `GLOB Patterns `_ are allowed. By default, ``src_filter`` is predefined to -``+<*> -<.git/> - -``, which means "includes ALL files, then +``+<*> -<.git/> - -``, which means "includes ALL files, then exclude ``.git`` and ``svn`` repository folders and exclude ``examples`` folder. This option can be set by global environment variable diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index f6cc28b4..5b7629c2 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -26,7 +26,7 @@ from SCons.Util import case_sensitive_suffixes SRC_BUILD_EXT = ["c", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"] SRC_HEADER_EXT = ["h", "hpp"] SRC_DEFAULT_FILTER = " ".join([ - "+<*>", "-<.git%s>" % sep, "-" % sep, "-" % sep + "+<*>", "-<.git%s>" % sep, "-" % sep, "-" % sep ])