mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add method to get ahead/behind commit counts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -17,3 +17,4 @@ class GitRepository
|
||||
isSubmodule: $git.isSubmodule
|
||||
refreshIndex: $git.refreshIndex
|
||||
destroy: $git.destroy
|
||||
getAheadBehindCounts: $git.getAheadBehindCounts
|
||||
|
||||
Reference in New Issue
Block a user