Add .git folders to Polymod ignore list.
This commit is contained in:
committed by
Cameron Taylor
parent
ea2d45e6c9
commit
b5bb09a2f7
@@ -151,7 +151,7 @@ class PolymodHandler
|
||||
frameworkParams: buildFrameworkParams(),
|
||||
|
||||
// List of filenames to ignore in mods. Use the default list to ignore the metadata file, etc.
|
||||
ignoredFiles: Polymod.getDefaultIgnoreList(),
|
||||
ignoredFiles: buildIgnoreList(),
|
||||
|
||||
// Parsing rules for various data formats.
|
||||
parseRules: buildParseRules(),
|
||||
@@ -333,6 +333,21 @@ class PolymodHandler
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a list of file paths that will be ignored in mods.
|
||||
*/
|
||||
static function buildIgnoreList():Array<String>
|
||||
{
|
||||
var result = Polymod.getDefaultIgnoreList();
|
||||
|
||||
result.push('.git');
|
||||
result.push('.gitignore');
|
||||
result.push('.gitattributes');
|
||||
result.push('README.md');
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
static function buildParseRules():polymod.format.ParseRules
|
||||
{
|
||||
var output:polymod.format.ParseRules = polymod.format.ParseRules.getDefault();
|
||||
|
||||
Reference in New Issue
Block a user