mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
* Move src/app to src/ * Move src/stdlib to src/ * Remove src/app and src/stdlib from NODE_PATH
19 lines
460 B
CoffeeScript
19 lines
460 B
CoffeeScript
Git = require 'git-utils'
|
|
fsUtils = require 'fs-utils'
|
|
path = require 'path'
|
|
|
|
module.exports = (repoPath) ->
|
|
repo = Git.open(repoPath)
|
|
if repo?
|
|
workingDirectoryPath = repo.getWorkingDirectory()
|
|
statuses = {}
|
|
for filePath, status of repo.getStatus()
|
|
statuses[path.join(workingDirectoryPath, filePath)] = status
|
|
upstream = repo.getAheadBehindCount()
|
|
repo.release()
|
|
else
|
|
upstream = {}
|
|
statuses = {}
|
|
|
|
{statuses, upstream}
|