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.