isPathIgnored

This commit is contained in:
Daniel Hengeveld
2015-10-15 17:00:47 +02:00
parent b566e47a08
commit bc3e8f02ad
2 changed files with 27 additions and 8 deletions

View File

@@ -29,4 +29,10 @@ module.exports = class GitRepositoryAsync {
return Promise.resolve(repo.path().replace(/\/$/, ''))
})
}
isPathIgnored(_path) {
return this.repoPromise.then( (repo) => {
return Promise.resolve(Git.Ignore.pathIsIgnored(repo, _path))
})
}
}