mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-06 23:26:25 +03:00
Git.refreshStatuses() -> Git.refreshStatus()
This commit is contained in:
parent
50bc1aac74
commit
c6e89d33f8
@ -148,7 +148,7 @@ describe "Git", ->
|
||||
fs.write(path, "#{originalPathText} edited line")
|
||||
expect(repo.getDiffStats(path)).toEqual {added: 1, deleted: 1}
|
||||
|
||||
describe ".refreshStatuses()", ->
|
||||
describe ".refreshStatus()", ->
|
||||
[newPath, modifiedPath, cleanPath, originalModifiedPathText] = []
|
||||
|
||||
beforeEach ->
|
||||
@ -167,7 +167,7 @@ describe "Git", ->
|
||||
fs.write(modifiedPath, 'making this path modified')
|
||||
statusHandler = jasmine.createSpy('statusHandler')
|
||||
repo.on 'statuses-changed', statusHandler
|
||||
repo.refreshStatuses()
|
||||
repo.refreshStatus()
|
||||
|
||||
waitsFor ->
|
||||
statusHandler.callCount > 0
|
||||
|
@ -34,7 +34,7 @@ class Git
|
||||
$ = require 'jquery'
|
||||
@subscribe $(window), 'focus', =>
|
||||
@refreshIndex()
|
||||
@refreshStatuses()
|
||||
@refreshStatus()
|
||||
|
||||
getRepo: ->
|
||||
unless @repo?
|
||||
@ -107,7 +107,7 @@ class Git
|
||||
isSubmodule: (path) ->
|
||||
@getRepo().isSubmodule(@relativize(path))
|
||||
|
||||
refreshStatuses: ->
|
||||
refreshStatus: ->
|
||||
new RepositoryStatusTask(this).start()
|
||||
|
||||
_.extend Git.prototype, Subscriber
|
||||
|
Loading…
Reference in New Issue
Block a user