lib/transforms/env/ignore.js
function gitignore(cwd, fp, arr) {
  fp = path.resolve(cwd, fp);
  if (!fs.existsSync(fp)) {
    return utils.defaultIgnores;
  }
  var str = fs.readFileSync(fp, 'utf8');
  return parse(str, arr);
}
function gitignore(cwd, fp, arr) {
  fp = path.resolve(cwd, fp);
  if (!fs.existsSync(fp)) {
    return utils.defaultIgnores;
  }
  var str = fs.readFileSync(fp, 'utf8');
  return parse(str, arr);
}
function gitignore ( cwd , fp , arr ) { fp = path . resolve ( cwd , fp ) ; if ( ! fs . existsSync ( fp ) ) { return utils . defaultIgnores ; } var str = fs . readFileSync ( fp , 'utf8' ) ; return parse ( str , arr ) ; }
Parse the local `.gitignore` file and add
the resulting ignore patterns.
Parse the local . gitignore file and add the resulting ignore patterns .