Add method to get ahead/behind commit counts

This commit is contained in:
Kevin Sawicki
2013-02-28 16:12:53 -08:00
parent 3703877ae8
commit fd82f3f8a4
3 changed files with 113 additions and 1 deletions

View File

@@ -138,5 +138,8 @@ class Git
directoryStatus |= status if path.indexOf(directoryPath) is 0
directoryStatus
getAheadBehindCounts: ->
@getRepo().getAheadBehindCounts()
_.extend Git.prototype, Subscriber
_.extend Git.prototype, EventEmitter