mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
Move ahead/behind defaults to Git class
This commit is contained in:
parent
a389d57219
commit
60c2829af4
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user