Move ahead/behind defaults to Git class

This commit is contained in:
Kevin Sawicki 2013-03-04 21:47:21 -08:00
parent a389d57219
commit 60c2829af4
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ class Git
directoryStatus
getAheadBehindCounts: ->
@getRepo().getAheadBehindCounts()
@getRepo().getAheadBehindCounts() ? ahead: 0, behind: 0
getLineDiffs: (path, text) ->
@getRepo().getLineDiffs(@relativize(path), text) ? []

View File

@ -9,7 +9,7 @@ module.exports =
statuses = {}
for path, status of repo.getRepo().getStatuses()
statuses[fs.join(workingDirectoryPath, path)] = status
upstream = repo.getAheadBehindCounts() ? {ahead: 0, behind: 0}
upstream = repo.getAheadBehindCounts()
repo.destroy()
else
upstream = {}