Add GitRepository.prototype.isDestroyed

This commit is contained in:
Antonio Scandurra
2016-06-20 17:05:56 +02:00
parent e5a3c9ebe0
commit c6f9d1d222

View File

@@ -130,6 +130,10 @@ class GitRepository
@async.destroy()
@async = null
# Public: Returns a {Boolean} indicating if this repository has been destroyed.
isDestroyed: ->
not @repo?
# Public: Invoke the given callback when this GitRepository's destroy() method
# is invoked.
#