mirror of
https://github.com/atom/atom.git
synced 2026-01-30 01:08:31 -05:00
isPathIgnored
This commit is contained in:
@@ -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))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user