mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Move ahead/behind defaults to Git class
This commit is contained in:
@@ -141,7 +141,7 @@ class Git
|
||||
directoryStatus
|
||||
|
||||
getAheadBehindCounts: ->
|
||||
@getRepo().getAheadBehindCounts()
|
||||
@getRepo().getAheadBehindCounts() ? ahead: 0, behind: 0
|
||||
|
||||
getLineDiffs: (path, text) ->
|
||||
@getRepo().getLineDiffs(@relativize(path), text) ? []
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user