From c6e89d33f894d8e45dfc3ff8a30e5c3c28c90c87 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 27 Feb 2013 14:48:41 -0800 Subject: [PATCH] Git.refreshStatuses() -> Git.refreshStatus() --- spec/app/git-spec.coffee | 4 ++-- src/app/git.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/app/git-spec.coffee b/spec/app/git-spec.coffee index c618f2ead..2a9522d3a 100644 --- a/spec/app/git-spec.coffee +++ b/spec/app/git-spec.coffee @@ -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 diff --git a/src/app/git.coffee b/src/app/git.coffee index c3d9cf2b2..a73fe41b4 100644 --- a/src/app/git.coffee +++ b/src/app/git.coffee @@ -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