Skip to content

Instantly share code, notes, and snippets.

@arikon
Created October 27, 2011 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arikon/1320811 to your computer and use it in GitHub Desktop.
Save arikon/1320811 to your computer and use it in GitHub Desktop.
exports.match = function(file) {
if (isSvn(file)) return;
if (/blocks.*?/.test(file.self)) {
file.match = matchBlocksLevel;
return file.match(file);
}
};
function isSvn(file) {
return (file.self == '.svn' || /\/\.svn\//.test(file.path));
}
function matchBlocksLevel(file) {
if (isSvn(file)) return;
return resolveBlocksLevel;
}
function resolveBlocksLevel(file, tree) {
console.log('blocksLevel: %s', file.path);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment