mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Use git-utils from status handler
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Git = require 'git'
|
||||
Git = nodeRequire 'git-utils'
|
||||
fs = require 'fs'
|
||||
|
||||
module.exports =
|
||||
@@ -7,10 +7,9 @@ module.exports =
|
||||
if repo?
|
||||
workingDirectoryPath = repo.getWorkingDirectory()
|
||||
statuses = {}
|
||||
for path, status of repo.getRepo().getStatuses()
|
||||
for path, status of repo.getStatuses()
|
||||
statuses[fs.join(workingDirectoryPath, path)] = status
|
||||
upstream = repo.getAheadBehindCounts()
|
||||
repo.destroy()
|
||||
upstream = repo.getAheadBehindCount()
|
||||
else
|
||||
upstream = {}
|
||||
statuses = {}
|
||||
|
||||
Reference in New Issue
Block a user